Skip to content

Commit

Permalink
Merge pull request #218 from NoiseByNorthwest/fix_216
Browse files Browse the repository at this point in the history
Increase command line str builder buffer size
  • Loading branch information
NoiseByNorthwest authored Aug 13, 2023
2 parents 855c7b2 + fe74ed6 commit 627a436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spx_php.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ char * spx_php_build_command_line(void)
goto error;
}

spx_str_builder_t * str_builder = spx_str_builder_create(1024);
spx_str_builder_t * str_builder = spx_str_builder_create(2 * 1024);
if (!str_builder) {
goto error;
}
Expand Down
2 changes: 1 addition & 1 deletion src/spx_str_builder.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ size_t spx_str_builder_append_str(spx_str_builder_t * str_builder, const char *

p[c++] = *str;
str++;
str_builder->size++;
}

p[c] = 0;
str_builder->size += c;

return c;
}
Expand Down

0 comments on commit 627a436

Please sign in to comment.