Received: from [140.186.70.92] (port=37439 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeqVo-0002sl-BY for qemu-devel@nongnu.org; Mon, 17 Jan 2011 09:56:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PeqVn-0004uS-3V for qemu-devel@nongnu.org; Mon, 17 Jan 2011 09:56:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PeqVm-0004uM-T8 for qemu-devel@nongnu.org; Mon, 17 Jan 2011 09:56:51 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0HEunHm016536 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Jan 2011 09:56:49 -0500 From: Jes.Sorensen@redhat.com Date: Mon, 17 Jan 2011 15:56:45 +0100 Message-Id: <1295276206-15592-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] strtosz() use unsigned char as isspace() is not defined for signed char List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, Alex.Williamson@redhat.com, eblake@redhat.com From: Jes Sorensen Bug pointed out by Erik Blake, thanks! Signed-off-by: Jes Sorensen --- cutils.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/cutils.c b/cutils.c index 7984bc1..f97ef39 100644 --- a/cutils.c +++ b/cutils.c @@ -294,7 +294,8 @@ int fcntl_setfl(int fd, int flag) ssize_t strtosz_suffix(const char *nptr, char **end, const char default_suffix) { ssize_t retval = -1; - char *endptr, c, d; + char *endptr; + unsigned char c, d; int mul_required = 0; double val, mul, integral, fraction; -- 1.7.3.4