From 91d5d5e71783c969781d31e210800e85f53cc599 Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Fri, 21 Feb 2014 14:24:56 -0800 Subject: [PATCH] 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. --- src/units.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/units.h b/src/units.h index 0256e88..dfd115a 100644 --- a/src/units.h +++ b/src/units.h @@ -8,7 +8,7 @@ */ enum { - UNIT_LEN = 11 + UNIT_LEN = 32 }; double unit_atof( const char *s );