Fixed zero precision bug in atcprintf (bug 3242, r=sawce).

This commit is contained in:
David Anderson 2009-01-08 20:00:38 +00:00
parent 2249f1e70c
commit d97ab913cf

View File

@ -240,7 +240,7 @@ void AddFloat(U **buf_p, size_t &maxlen, double fval, int width, int prec, int f
} }
// write the fraction part // write the fraction part
if (maxlen) if (maxlen && prec)
{ {
*buf++ = '.'; *buf++ = '.';
maxlen--; maxlen--;