From: George Schlossnagle Date: Sun, 20 Jul 2003 20:16:07 +0000 (+0000) Subject: should nt here X-Git-Tag: BEFORE_ARG_INFO~168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=600f72f7b4652321b14d2abe247a4f3bdc7f7d98;p=php should nt here --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index a10455e0dc..493c25e9b2 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.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; } 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; }