Properly size buffer to avoid overflow.
This commit is contained in:
parent
604ad4d8ff
commit
14367520a2
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user