cvs: php-src(PHP_5_2) /main snprintf.c
| From: | Antony Dovgal | Date: | Tue, 19 Dec 2006 13:27:09 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /main snprintf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-42184@lists.php.net to get a copy of this message | ||
tony2001 Tue Dec 19 13:27:09 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/main snprintf.c
Log:
MFH
http://cvs.php.net/viewvc.cgi/php-src/main/snprintf.c?r1=1.37.2.4.2.6&r2=1.37.2.4.2.7&diff_format=u
Index: php-src/main/snprintf.c
diff -u php-src/main/snprintf.c:1.37.2.4.2.6 php-src/main/snprintf.c:1.37.2.4.2.7
--- php-src/main/snprintf.c:1.37.2.4.2.6 Tue Dec 19 13:15:39 2006
+++ php-src/main/snprintf.c Tue Dec 19 13:27:09 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: snprintf.c,v 1.37.2.4.2.6 2006/12/19 13:15:39 tony2001 Exp $ */
+/* $Id: snprintf.c,v 1.37.2.4.2.7 2006/12/19 13:27:09 tony2001 Exp $ */
#include "php.h"
@@ -139,7 +139,7 @@
* Infinity or NaN, convert to inf or nan with sign.
* We assume the buffer is at least ndigit long.
*/
- snprintf(buf, ndigit + 1, "%s%s", sign ? "-" : "",
+ snprintf(buf, ndigit + 1, "%s%s", (sign && *digits == 'I') ?
"-" : "",
*digits == 'I' ? "INF" : "NAN");
zend_freedtoa(digits);
return (buf);