[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] tools/libxl: fix array subscript has type 'char'



commit cad172d7b88bd443c81d865051297875ce2551bc
Author: Christoph Egger <chegger@xxxxxxxxx>
Date:   Thu Feb 7 14:42:29 2013 +0000

    tools/libxl: fix array subscript has type 'char'

    Signed-off-by: Christoph Egger <chegger@xxxxxxxxx>
    Reviewed-by: Matt Wilson <msw@xxxxxxxxxx>

diff --git a/tools/libxl/libxl_utils.c b/tools/libxl/libxl_utils.c
index 35da71c..0c039b1 100644
--- a/tools/libxl/libxl_utils.c
+++ b/tools/libxl/libxl_utils.c
@@ -95,7 +95,7 @@ int libxl_domain_qualifier_to_domid(libxl_ctx *ctx,
const char *name,
 {
     int i, rv;
     for (i=0; name[i]; i++) {
-        if (!isdigit(name[i])) {
+        if (!isdigit((unsigned char)name[i])) {
             goto nondigit_found;
         }
     }

Attachment: patch_libxl.diff
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.