[glib: 1/2] gwin32appinfo: Fix printf length sub-specifier
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gwin32appinfo: Fix printf length sub-specifier
- Date: Tue, 26 Jan 2021 17:52:11 +0000 (UTC)
commit 9b2ab509dae9fe68e63290f38d0ad0dc7b0391e3
Author: Ole André Vadla Ravnås <oleavr gmail com>
Date: Fri Nov 20 19:02:39 2020 +0100
gwin32appinfo: Fix printf length sub-specifier
warning: format string '%x' requires an argument of type 'unsigned int',
but variadic argument 1 has type 'gsize'.
gio/gwin32appinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c
index b12f9e092..b1709fbba 100644
--- a/gio/gwin32appinfo.c
+++ b/gio/gwin32appinfo.c
@@ -1795,7 +1795,7 @@ generate_new_verb_name (GPtrArray *verbs,
memcpy (new_verb_name, verb, orig_len * sizeof (gunichar2));
for (counter = 0; counter < 255; counter++)
{
- _snwprintf (&new_verb_name[orig_len], new_verb_name_len, L" (%x)", counter);
+ _snwprintf (&new_verb_name[orig_len], new_verb_name_len, L" (%zx)", counter);
_verb_lookup (verbs, new_verb_name, &shverb);
if (shverb == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]