mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 11:48:03 +00:00
[CRT]
Fix a bug in _ecvt that makes msvcrt_winetest::printf crash svn path=/trunk/; revision=50275
This commit is contained in:
parent
6cdeeb6a1e
commit
a457cc5898
|
@ -18,6 +18,7 @@ _ecvt (double value, int ndigits, int *decpt, int *sign)
|
|||
static char ecvtbuf[DBL_MAX_10_EXP + 10];
|
||||
char *cvtbuf, *s, *d;
|
||||
|
||||
if (ndigits < 0) ndigits = 0;
|
||||
s = cvtbuf = (char*)malloc(ndigits + NUMBER_EFMT);
|
||||
d = ecvtbuf;
|
||||
|
||||
|
|
Loading…
Reference in a new issue