[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] jazz_led: fix bad snprintf
From: |
Michael Tokarev |
Subject: |
Re: [Qemu-trivial] [PATCH] jazz_led: fix bad snprintf |
Date: |
Fri, 5 May 2017 12:47:34 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
03.05.2017 13:44, Paolo Bonzini wrote:
> Detected by GCC 7's -Wformat-truncation. snprintf writes at most
> 2 bytes here including the terminating NUL, so the result is
> truncated. In addition, the newline at the end is pointless.
> Fix the buffer size and the format string.
Applied to -trivial, thanks!
/mjt
Re: [Qemu-trivial] [PATCH] jazz_led: fix bad snprintf, Michael Tokarev, 2017/05/05
Re: [Qemu-trivial] [PATCH] jazz_led: fix bad snprintf,
Michael Tokarev <=