mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-12 19:05:07 +00:00
red-qxl: Use proper formatting string for size_t
Avoids issues with LLP64 systems. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
b4825e4b6b
commit
e91c57e6f4
@ -862,7 +862,8 @@ void spice_qxl_set_device_info(QXLInstance *instance,
|
||||
|
||||
size_t da_len = strnlen(device_address, MAX_DEVICE_ADDRESS_LEN);
|
||||
if (da_len >= MAX_DEVICE_ADDRESS_LEN) {
|
||||
spice_error("Device address too long: %lu > %u", da_len, MAX_DEVICE_ADDRESS_LEN);
|
||||
spice_error("Device address too long: %"G_GSIZE_FORMAT" > %u",
|
||||
da_len, MAX_DEVICE_ADDRESS_LEN);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user