summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2000-04-04 11:35:01 +0000
committerThies C. Arntzen <thies@php.net>2000-04-04 11:35:01 +0000
commit38cb3de2bcdc1509d82e2d2d455d326c968bdb71 (patch)
treed5bdc4d5c236c6b6f0c041b7ba5fd713f33c97d1
parent3e2a1034cb6ee1f014040d95a4cc387ce0180084 (diff)
downloadphp-git-38cb3de2bcdc1509d82e2d2d455d326c968bdb71.tar.gz
buffer was short by one
-rw-r--r--ext/wddx/wddx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index e0d48c3c0d..364bb6c4b8 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -299,7 +299,7 @@ static void php_wddx_serialize_string(wddx_packet *packet, zval *var)
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))