Larger default allocation size for xy_strjoin()

This commit is contained in:
Aoran Zeng
2025-07-19 05:39:47 +08:00
parent 41d1775fb9
commit 6f913b2170

View File

@@ -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;