diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-02-17 17:47:52 +0100 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2016-02-25 09:48:51 -0600 |
commit | 6771197dffb214cf9ac5de825bbb24ff5dcc70c2 (patch) | |
tree | 8a5cdd083a597c042073017ea9723e60285fb9c6 /qga | |
parent | 02506e2d545d2f931442c910ab46be2cb6d9f788 (diff) |
qga: use size_t for wcslen() return value
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>
Diffstat (limited to 'qga')
-rw-r--r-- | qga/commands-win32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 4e3e14741b..1086ac92a8 100644 --- 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 | |