Browse Source

- Fixed bug #62525 (sigabrt while converting floating point to string)

pull/135/head
Felipe Pena 14 years ago
parent
commit
63f3962a90
  1. 2
      main/snprintf.c

2
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) {

Loading…
Cancel
Save