Skip to content

Commit

Permalink
qga: use size_t for wcslen() return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elmarco authored and mdroth committed Feb 25, 2016
1 parent 02506e2 commit 6771197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qga/commands-win32.c
Expand Up @@ -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 |
Expand Down

0 comments on commit 6771197

Please sign in to comment.