]> Git Repo - qemu.git/commit - hw/arm/allwinner-a10.c
arm/allwinner-a10: replace snprintf() with g_strdup_printf()
authorMarc-André Lureau <[email protected]>
Wed, 20 Apr 2022 13:25:57 +0000 (17:25 +0400)
committerMarc-André Lureau <[email protected]>
Thu, 21 Apr 2022 13:03:51 +0000 (17:03 +0400)
commitaaea18d5d697d94ba63122a644690b9a9e7db007
treeb54cc20cbea4cb31649b0d55f792420b7e8ced24
parente5c41835250ebb3f0297606bc7cc48cfa5474e8f
arm/allwinner-a10: replace snprintf() with g_strdup_printf()

Also fixes a GCC 12.0.1 false-positive:
../hw/arm/allwinner-a10.c: In function ‘aw_a10_realize’:
../hw/arm/allwinner-a10.c:135:35: error: ‘%d’ directive writing between 1 and 11 bytes into a region of size 8 [-Werror=format-overflow=]
  135 |             sprintf(bus, "usb-bus.%d", i);
      |                                   ^~

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Reviewed-by: Daniel P. Berrangé <[email protected]>
Message-Id: <20220420132624.2439741[email protected]>
hw/arm/allwinner-a10.c
This page took 0.025353 seconds and 4 git commands to generate.