diff options
| author | Sascha Schumann <sas@php.net> | 2000-03-12 17:18:21 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2000-03-12 17:18:21 +0000 |
| commit | bb09ee9505023838079d427d47e7d0b0494d1b8c (patch) | |
| tree | 630e0c0a4cb16196323e88c1f4759cea3cd60574 /ext/standard/math.c | |
| parent | 00c14f7413e7dff82fb187d990d5d19c0ad2a7cf (diff) | |
| download | php-git-bb09ee9505023838079d427d47e7d0b0494d1b8c.tar.gz | |
Use sprintf everywhere and define sprintf to php_sprintf, if sprintf is broken.
Diffstat (limited to 'ext/standard/math.c')
| -rw-r--r-- | ext/standard/math.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c index 19b87e733c..b5ecf38fd9 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -613,7 +613,7 @@ char *_php_math_number_format(double d,int dec,char dec_point,char thousand_sep) dec = MAX(0,dec); tmpbuf = (char *) emalloc(32+dec); - tmplen=php_sprintf(tmpbuf,"%.*f",dec,d); + tmplen=sprintf(tmpbuf,"%.*f",dec,d); if (!isdigit((int)tmpbuf[0])) { return tmpbuf; |
