From patchwork Mon Jan 17 15:14:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 79190 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1A5B7B70EB for ; Tue, 18 Jan 2011 02:19:22 +1100 (EST) Received: from localhost ([127.0.0.1]:52538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeqrW-0005sO-OH for incoming@patchwork.ozlabs.org; Mon, 17 Jan 2011 10:19:18 -0500 Received: from [140.186.70.92] (port=45302 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Peqml-0002jS-GF for qemu-devel@nongnu.org; Mon, 17 Jan 2011 10:14:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Peqmk-00087C-0j for qemu-devel@nongnu.org; Mon, 17 Jan 2011 10:14:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:29264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Peqmj-00086p-QF for qemu-devel@nongnu.org; Mon, 17 Jan 2011 10:14:21 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0HFELm7012861 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Jan 2011 10:14:21 -0500 Received: from red-feather.redhat.com (ovpn-113-72.phx2.redhat.com [10.3.113.72]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p0HFEHvF012276; Mon, 17 Jan 2011 10:14:19 -0500 From: Jes.Sorensen@redhat.com To: qemu-devel@nongnu.org Date: Mon, 17 Jan 2011 16:14:16 +0100 Message-Id: <1295277257-17425-2-git-send-email-Jes.Sorensen@redhat.com> In-Reply-To: <1295277257-17425-1-git-send-email-Jes.Sorensen@redhat.com> References: <1295277257-17425-1-git-send-email-Jes.Sorensen@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: kwolf@redhat.com, Alex.Williamson@redhat.com, eblake@redhat.com Subject: [Qemu-devel] [PATCH 1/2] strtosz() use unsigned char as isspace() is not defined for signed char X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Jes Sorensen Bug pointed out by Eric 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;