From 600f72f7b4652321b14d2abe247a4f3bdc7f7d98 Mon Sep 17 00:00:00 2001 From: George Schlossnagle Date: Sun, 20 Jul 2003 20:16:07 +0000 Subject: [PATCH] should nt here --- Zend/zend_reflection_api.c | 1 + ext/reflection/php_reflection.c | 1 + 2 files changed, 2 insertions(+) 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; } -- 2.50.1