mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-21 07:39:35 +08:00
Larger default allocation size for xy_strjoin()
This commit is contained in:
parent
41d1775fb9
commit
6f913b2170
2
lib/xy.h
2
lib/xy.h
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user