mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-08 03:59:33 +08:00
Change default allocation in xy_strjoin()
This commit is contained in:
parent
5f21fb7694
commit
5c79f59316
2
helper.h
2
helper.h
@ -171,7 +171,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 = 64;
|
size_t al_fixed = 128;
|
||||||
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