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
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -229,7 +229,7 @@ xy_2strjoin (const char *str1, const char *str2)
static char * static char *
xy_strjoin (unsigned int count, ...) xy_strjoin (unsigned int count, ...)
{ {
size_t al_fixed = 128; size_t al_fixed = 256;
char *ret = calloc (1, al_fixed); char *ret = calloc (1, al_fixed);
// 已分配次数 // 已分配次数
int al_times = 1; int al_times = 1;