From 14367520a219d579ff96ef610cf113859285d324 Mon Sep 17 00:00:00 2001 From: wkj Date: Tue, 1 Nov 2005 15:27:28 +0000 Subject: Properly size buffer to avoid overflow. --- src/lib9/fmt/fltfmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3