Increase buffer size for formatted numeric quantities, to avoid truncation.

This can happen if the user forces a particular output format that leads
to many digits (6 or more) being printed.  The new buffer size is probably
larger than it needs to be, but better safe than sorry.

Fixes Issue 142.
This commit is contained in:
Bruce A. Mah 2014-02-21 14:24:56 -08:00
parent a3736b64e7
commit 91d5d5e717

View File

@ -8,7 +8,7 @@
*/
enum {
UNIT_LEN = 11
UNIT_LEN = 32
};
double unit_atof( const char *s );