From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYbSj-0002QK-F1 for qemu-devel@nongnu.org; Wed, 24 Feb 2016 10:34:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYbSf-0007MB-98 for qemu-devel@nongnu.org; Wed, 24 Feb 2016 10:34:49 -0500 Received: from mail-ob0-x241.google.com ([2607:f8b0:4003:c01::241]:34367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYbSf-0007Lz-4q for qemu-devel@nongnu.org; Wed, 24 Feb 2016 10:34:45 -0500 Received: by mail-ob0-x241.google.com with SMTP id wz1so1172464obc.1 for ; Wed, 24 Feb 2016 07:34:43 -0800 (PST) Sender: fluxion Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Roth In-Reply-To: <1455727675-20625-3-git-send-email-marcandre.lureau@redhat.com> References: <1455727675-20625-1-git-send-email-marcandre.lureau@redhat.com> <1455727675-20625-3-git-send-email-marcandre.lureau@redhat.com> Message-ID: <20160224153425.29588.23196@loki> Date: Wed, 24 Feb 2016 09:34:25 -0600 Subject: Re: [Qemu-devel] [PATCH 2/5] qga: use size_t for wcslen() return value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org Cc: lersek@redhat.com Quoting marcandre.lureau@redhat.com (2016-02-17 10:47:52) > From: Marc-Andr=C3=A9 Lureau > = > Reported-by: Laszlo Ersek > Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Michael Roth > --- > 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 =3D NULL; > gchar *retval =3D NULL; > wchar_t *msg =3D NULL; > - int flags, nchars; > + int flags; > + size_t nchars; > = > flags =3D FORMAT_MESSAGE_ALLOCATE_BUFFER | > FORMAT_MESSAGE_IGNORE_INSERTS | > -- = > 2.5.0 >=20