Skip to content

Commit

Permalink
- Fixed bug #62525 (sigabrt while converting floating point to string)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jul 14, 2012
1 parent 8645752 commit 63f3962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/snprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 63f3962

Please sign in to comment.