From 6f913b217082dcc365a98d57bdeb65cd80860e04 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sat, 19 Jul 2025 05:39:47 +0800 Subject: [PATCH] Larger default allocation size for `xy_strjoin()` --- lib/xy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xy.h b/lib/xy.h index da7b732..4f25954 100644 --- a/lib/xy.h +++ b/lib/xy.h @@ -229,7 +229,7 @@ xy_2strjoin (const char *str1, const char *str2) static char * xy_strjoin (unsigned int count, ...) { - size_t al_fixed = 128; + size_t al_fixed = 256; char *ret = calloc (1, al_fixed); // 已分配次数 int al_times = 1;