[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: |
Lars Ingebrigtsen |
Subject: |
bug#42656: term.c:1405:25: warning: ‘%d’ directive writing between 2 and 10 bytes into a region of size 3 |
Date: |
Mon, 10 Aug 2020 01:07:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Andreas Schwab <schwab@linux-m68k.org> writes:
> 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.
Yeah, that clearly seems like a compiler bug? What compiler are you
using?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no