[Spice-commits] server/red-qxl.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 31 10:35:23 UTC 2019


 server/red-qxl.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e91c57e6f4b3b0c7310f4a5554ab7842c3e53424
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Thu Jan 31 09:32:02 2019 +0000

    red-qxl: Use proper formatting string for size_t
    
    Avoids issues with LLP64 systems.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/server/red-qxl.c b/server/red-qxl.c
index 37f3d9c8..ddb98afb 100644
--- a/server/red-qxl.c
+++ b/server/red-qxl.c
@@ -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;
     }
 


More information about the Spice-commits mailing list