Skip to content

Commit 6f913b2

Browse files
committed
Larger default allocation size for xy_strjoin()
1 parent 41d1775 commit 6f913b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/xy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ xy_2strjoin (const char *str1, const char *str2)
229229
static char *
230230
xy_strjoin (unsigned int count, ...)
231231
{
232-
size_t al_fixed = 128;
232+
size_t al_fixed = 256;
233233
char *ret = calloc (1, al_fixed);
234234
// 已分配次数
235235
int al_times = 1;

0 commit comments

Comments
 (0)