cvs: /php4/ext/wddx wddx.c
| From: | Thies C. Arntzen | Date: | Tue, 04 Apr 2000 11:35:31 +0000 |
| Subject: | cvs: /php4/ext/wddx wddx.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13075@lists.php.net to get a copy of this message | ||
thies Tue Apr 4 04:35:31 2000 EDT
Modified files:
/php4/ext/wddx wddx.c
Log:
buffer was short by one
Index: php4/ext/wddx/wddx.c
diff -u php4/ext/wddx/wddx.c:1.29 php4/ext/wddx/wddx.c:1.30
--- php4/ext/wddx/wddx.c:1.29 Mon Mar 6 10:41:18 2000
+++ php4/ext/wddx/wddx.c Tue Apr 4 04:35:01 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: wddx.c,v 1.29 2000/03/06 18:41:18 ssb Exp $ */
+/* $Id: wddx.c,v 1.30 2000/04/04 11:35:01 thies Exp $ */
#include "php.h"
#include "php_wddx.h"
@@ -299,7 +299,7 @@
if (var->value.str.len > 0) {
i = 0;
- buf = (char *)emalloc(var->value.str.len);
+ buf = (char *)emalloc(var->value.str.len+1);
for(c=var->value.str.val; *c!='\0'; c++)
{
if (iscntrl((int)*c))