mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
[CRT]
Fix a bug in _ecvt that makes msvcrt_winetest::printf crash svn path=/trunk/; revision=50275
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user