[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42656: term.c:1405:25: warning: ‘%d’ directive writing between 2 and
From: |
Andreas Schwab |
Subject: |
bug#42656: term.c:1405:25: warning: ‘%d’ directive writing between 2 and 10 bytes into a region of size 3 |
Date: |
Sat, 01 Aug 2020 21:43:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) |
On Aug 01 2020, Jeffrey Walton wrote:
> term.c:1405:23: note: directive argument in the range [11, 2147483646]
> sprintf (fkey, "f%d", i);
> ^~~~~
That's clearly a compiler bug. The loop counts i from 11 to 64, so
2147483646 can never happen.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."