tools/libxl: fix array subscript has type 'char'
PATCH 1/1 tools/libxl: fix array subscript has type 'char'
commit cad172d7b88bd443c81d865051297875ce2551bc
Author: Christoph Egger <[email protected]> Date: Thu Feb 7 14:42:29 2013 +0000
tools/libxl: fix array subscript has type 'char'
Signed-off-by Christoph Egger <[email protected]>
Reviewed-by Matt Wilson <[email protected]>
tools/libxl/libxl_utils.c +0 -0
@@ -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;
}
}
commit cad172d7b88bd443c81d865051297875ce2551bc
Author: Christoph Egger <[email protected]>
Date: Thu Feb 7 14:42:29 2013 +0000 tools/libxl: fix array subscript has type 'char'
Signed-off-by Christoph Egger <[email protected]>
Reviewed-by Matt Wilson <[email protected]>
tools/libxl/libxl_utils.c +1 -1
@@ -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; } }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 5 lines · Christoph Egger
commit
cad172d7b88bd443c81d865051297875ce2551bcAuthor: Christoph Egger <[email protected]> Date: Thu Feb 7 14:42:29 2013 +0000
tools/libxl: fix array subscript has type 'char'
Please use the CTYPE macro from libxl_internal.h.
Ian.
Quoted 8 lines · Ian Campbell
Quoted 5 lines · Christoph Egger
commit
cad172d7b88bd443c81d865051297875ce2551bcAuthor: Christoph Egger <[email protected]> Date: Thu Feb 7 14:42:29 2013 +0000
tools/libxl: fix array subscript has type 'char'Please use the CTYPE macro from
libxl_internal.h.
Oh, ok. I completely missend when that was introduced.
Christoph