cvs: php4 /ext/pcre/ php_pcre.c
| From: | Andrei Zmievski | Date: | Sat, 10 Jun 2000 19:43:20 +0000 |
| Subject: | cvs: php4 /ext/pcre/ php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-155@lists.php.net to get a copy of this message | ||
andrei Sat Jun 10 12:43:20 2000 EDT
Modified files:
/php4/ext/pcre php_pcre.c
Log:
Terminate the string with '\0'.
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.57 php4/ext/pcre/php_pcre.c:1.58
--- php4/ext/pcre/php_pcre.c:1.57 Mon Jun 5 12:47:43 2000
+++ php4/ext/pcre/php_pcre.c Sat Jun 10 12:43:20 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.57 2000/06/05 19:47:43 andi Exp $ */
+/* $Id: php_pcre.c,v 1.58 2000/06/10 19:43:20 andrei Exp $ */
/*
TODO:
@@ -713,6 +713,7 @@
} else {
*walkbuf++ = *walk++;
}
+ *walkbuf = '\0';
/* increment the result length by how much we've added to the string */
*result_len += walkbuf - (result + *result_len);
}