cvs: php4(PHP_4_3) /ext/standard var.c
| From: | Ilia Alshanetsky | Date: | Sun, 04 May 2003 19:10:07 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/standard var.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20687@lists.php.net to get a copy of this message | ||
iliaa Sun May 4 15:10:07 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard var.c
Log:
MFH
Index: php4/ext/standard/var.c
diff -u php4/ext/standard/var.c:1.150.2.5 php4/ext/standard/var.c:1.150.2.6
--- php4/ext/standard/var.c:1.150.2.5 Sun May 4 14:41:37 2003
+++ php4/ext/standard/var.c Sun May 4 15:10:07 2003
@@ -511,11 +511,12 @@
return;
case IS_DOUBLE: {
- char s[256];
+ char *s;
ulong slen;
- slen = sprintf(s, "d:%.252g;", Z_DVAL_PP(struc));
+ slen = spprintf(&s, 0, "d:%.100g;", Z_DVAL_PP(struc));
smart_str_appendl(buf, s, slen);
+ efree(s);
return;
}