From 63f3962a9015cd119b028e4c6e3f5533fb9f38e0 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 14 Jul 2012 15:15:11 -0300 Subject: [PATCH] - Fixed bug #62525 (sigabrt while converting floating point to string) --- main/snprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/snprintf.c b/main/snprintf.c index 46b146474c..1e0e45510d 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -94,7 +94,7 @@ static char * __cvt(double value, int ndigit, int *decpt, int *sign, int fmode, *decpt = 0; c = *p; zend_freedtoa(p); - return(c == 'I' ? "INF" : "NAN"); + return strdup((c == 'I' ? "INF" : "NAN")); } /* Make a local copy and adjust rve to be in terms of s */ if (pad && fmode) { -- 2.49.0