From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW5Gj-00022I-Jd for qemu-devel@nongnu.org; Wed, 17 Feb 2016 11:48:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aW5Gi-0003sM-MX for qemu-devel@nongnu.org; Wed, 17 Feb 2016 11:48:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW5Gi-0003s7-Gk for qemu-devel@nongnu.org; Wed, 17 Feb 2016 11:48:00 -0500 From: marcandre.lureau@redhat.com Date: Wed, 17 Feb 2016 17:47:52 +0100 Message-Id: <1455727675-20625-3-git-send-email-marcandre.lureau@redhat.com> In-Reply-To: <1455727675-20625-1-git-send-email-marcandre.lureau@redhat.com> References: <1455727675-20625-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [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: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , lersek@redhat.com, mdroth@linux.vnet.ibm.com From: Marc-Andr=C3=A9 Lureau Reported-by: Laszlo Ersek Signed-off-by: Marc-Andr=C3=A9 Lureau --- 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; =20 flags =3D FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_IGNORE_INSERTS | --=20 2.5.0