aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib9/fmt/fltfmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/fmt/fltfmt.c b/src/lib9/fmt/fltfmt.c
index 8afd024a..14ad8679 100644
--- a/src/lib9/fmt/fltfmt.c
+++ b/src/lib9/fmt/fltfmt.c
@@ -376,7 +376,7 @@ found:
static int
floatfmt(Fmt *fmt, double f)
{
- char s[FDIGIT+10];
+ char s[341]; /* precision+exponent+sign+'.'+null */
xdtoa(fmt, s, f);
fmt->flags &= FmtWidth|FmtLeft;