mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix initial buffer size
This commit is contained in:
parent
2b19c5435e
commit
bca0019d43
2 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ typedef struct _string {
|
|||
|
||||
void string_init(string *str)
|
||||
{
|
||||
str->string = (char *) emalloc(1042);
|
||||
str->string = (char *) emalloc(1024);
|
||||
str->len = 1;
|
||||
str->alloced = 1024;
|
||||
*str->string = '\0';
|
||||
|
|
|
@ -71,7 +71,7 @@ typedef struct _string {
|
|||
|
||||
void string_init(string *str)
|
||||
{
|
||||
str->string = (char *) emalloc(1042);
|
||||
str->string = (char *) emalloc(1024);
|
||||
str->len = 1;
|
||||
str->alloced = 1024;
|
||||
*str->string = '\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue