1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00

buffer was short by one

This commit is contained in:
Thies C. Arntzen
2000-04-04 11:35:01 +00:00
parent 3e2a1034cb
commit 38cb3de2bc

View File

@@ -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))