qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/5] qga: use size_t for wcslen() return value


From: Michael Roth
Subject: Re: [Qemu-devel] [PATCH 2/5] qga: use size_t for wcslen() return value
Date: Wed, 24 Feb 2016 09:34:25 -0600
User-agent: alot/0.3.6

Quoting address@hidden (2016-02-17 10:47:52)
> From: Marc-André Lureau <address@hidden>
> 
> Reported-by: Laszlo Ersek <address@hidden>
> Signed-off-by: Marc-André Lureau <address@hidden>

Reviewed-by: Michael Roth <address@hidden>

> ---
>  qga/commands-win32.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/qga/commands-win32.c b/qga/commands-win32.c
> index 7baacc7..e5afc5d 100644
> --- a/qga/commands-win32.c
> +++ b/qga/commands-win32.c
> @@ -1246,7 +1246,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 |
> -- 
> 2.5.0
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]