diff options
author | Paolo Bonzini | 2017-05-03 12:44:41 +0200 |
---|---|---|
committer | Michael Tokarev | 2017-05-10 09:19:24 +0200 |
commit | e9c6ab62c760e333a6cf0f3f9ab021633723434c (patch) | |
tree | 7788e085ba97b1ef7a65c62a93ee30083425a55f /backends | |
parent | tests: Ignore another built executable (test-hmp) (diff) | |
download | qemu-e9c6ab62c760e333a6cf0f3f9ab021633723434c.tar.gz qemu-e9c6ab62c760e333a6cf0f3f9ab021633723434c.tar.xz qemu-e9c6ab62c760e333a6cf0f3f9ab021633723434c.zip |
jazz_led: fix bad snprintf
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.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'backends')
0 files changed, 0 insertions, 0 deletions