qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Michael Roth <mdroth@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org,
	"Michael Roth" <mdroth@linux.vnet.ibm.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [Qemu-devel] [PULL 5/9] qga: use size_t for wcslen() return value
Date: Thu, 25 Feb 2016 11:11:57 -0600	[thread overview]
Message-ID: <1456420321-20924-6-git-send-email-mdroth@linux.vnet.ibm.com> (raw)
In-Reply-To: <1456420321-20924-1-git-send-email-mdroth@linux.vnet.ibm.com>

From: Marc-André Lureau <marcandre.lureau@redhat.com>

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>
---
 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 4e3e147..1086ac9 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 |
-- 
1.9.1

  parent reply	other threads:[~2016-02-25 17:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-25 17:11 [Qemu-devel] [PULL 0/9] qemu-ga patch queue for 2.6 Michael Roth
2016-02-25 17:11 ` [Qemu-devel] [PULL 1/9] qga: Support enum names in guest-file-seek Michael Roth
2016-02-25 17:11 ` [Qemu-devel] [PULL 2/9] qemu-ga: Fixed minor version switch issue Michael Roth
2016-02-25 17:11 ` [Qemu-devel] [PULL 3/9] qga: implement the guest-get-vcpus for windows Michael Roth
2016-02-25 17:11 ` [Qemu-devel] [PULL 4/9] qga: use more idiomatic qemu-style eol operators Michael Roth
2016-02-25 17:11 ` Michael Roth [this message]
2016-02-25 17:11 ` [Qemu-devel] [PULL 6/9] qga: use wide-chars constants for wchar_t comparisons Michael Roth
2016-02-25 17:11 ` [Qemu-devel] [PULL 7/9] qga: fix off-by-one length check Michael Roth
2016-02-25 17:12 ` [Qemu-devel] [PULL 8/9] qga: check utf8-to-utf16 conversion Michael Roth
2016-02-25 17:12 ` [Qemu-devel] [PULL 9/9] qga: fix w32 breakage due to missing osdep.h includes Michael Roth
2016-02-25 18:18 ` [Qemu-devel] [PULL 0/9] qemu-ga patch queue for 2.6 Peter Maydell
2016-02-25 21:27   ` Michael Roth
2016-02-26  5:44     ` Stefan Weil
2016-02-26 11:39       ` Peter Maydell
2016-02-26 11:40         ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456420321-20924-6-git-send-email-mdroth@linux.vnet.ibm.com \
    --to=mdroth@linux.vnet.ibm.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).