projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02506e2
)
qga: use size_t for wcslen() return value
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Wed, 17 Feb 2016 16:47:52 +0000
(17:47 +0100)
committer
Michael Roth
<mdroth@linux.vnet.ibm.com>
Thu, 25 Feb 2016 15:48:51 +0000
(09:48 -0600)
Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-win32.c
patch
|
blob
|
history
diff --git
a/qga/commands-win32.c
b/qga/commands-win32.c
index 4e3e14741bd289fc630b8bd4b96fa28e383d2620..1086ac92a8bac6a43c213d34bd660acf06bd5ff0 100644
(file)
--- a/
qga/commands-win32.c
+++ b/
qga/commands-win32.c
@@
-1303,7
+1303,8
@@
get_net_error_message(gint error)
HMODULE module = NULL;
gchar *retval = NULL;
wchar_t *msg = NULL;
- int flags, nchars;
+ int flags;
+ size_t nchars;
flags = FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_IGNORE_INSERTS |