diff options
Diffstat (limited to 'ext/reflection/php_reflection.c')
| -rw-r--r-- | ext/reflection/php_reflection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index a10455e0dc..493c25e9b2 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -117,6 +117,7 @@ string *string_write(string *str, char *buf, int len) } memcpy(str->string + str->len - 1, buf, len); str->len += len; + str->string[str->len] = '\0'; return str; } |
