diff options
author | Sascha Schumann <sas@php.net> | 2000-11-14 20:34:14 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-11-14 20:34:14 +0000 |
commit | 008d23bb5c43e42369dc63470a19837f8f9a84ec (patch) | |
tree | ef85fcf8b37d2dc3b0bccd1ef6a1c0e97d0360cc /ext/standard/php_smart_str.h | |
parent | 2d57a5b2a4f212cb528fbf23798a717580ee456c (diff) | |
download | php-git-008d23bb5c43e42369dc63470a19837f8f9a84ec.tar.gz |
Fix allocation
Diffstat (limited to 'ext/standard/php_smart_str.h')
-rw-r--r-- | ext/standard/php_smart_str.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/php_smart_str.h b/ext/standard/php_smart_str.h index 9626abd982..fce92af818 100644 --- a/ext/standard/php_smart_str.h +++ b/ext/standard/php_smart_str.h @@ -27,8 +27,8 @@ if (!d->c) d->len = d->a = 0; \ newlen = d->len + n; \ if (newlen >= d->a) {\ - d->c = perealloc(d->c, n + 129, what); \ - d->a = n + 128; \ + d->c = perealloc(d->c, newlen + 129, what); \ + d->a = newlen + 128; \ }\ } |