diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-04-20 17:25:56 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-04-21 17:03:51 +0400 |
commit | e5c41835250ebb3f0297606bc7cc48cfa5474e8f (patch) | |
tree | f9a0d81e6bebe1afe1de2f4fde1a7c4826d59311 /crypto/pbkdf-gcrypt.c | |
parent | 7a42e6885aab340c1fad8efea95929b673714ecc (diff) |
arm/digic: replace snprintf() with g_strdup_printf()
Also fixes a GCC 12.0.1 false-positive:
../hw/arm/digic.c: In function ‘digic_init’:
../hw/arm/digic.c:45:54: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 5 [-Werror=format-truncation=]
45 | snprintf(name, DIGIC_TIMER_NAME_MLEN, "timer[%d]", i);
| ^~
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220420132624.2439741-14-marcandre.lureau@redhat.com>
Diffstat (limited to 'crypto/pbkdf-gcrypt.c')
0 files changed, 0 insertions, 0 deletions