From: Ian Jackson Date: Thu, 28 Aug 2008 14:32:50 +0000 (+0100) Subject: Use CTYPE for isalpha in block-vvfat.c. X-Git-Tag: xen-3.3.2-rc1~9 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9bda8e3c102d5c6ffdec10fe92289dd0d7b7e5ab;p=qemu-xen-3.3-testing.git Use CTYPE for isalpha in block-vvfat.c. This call was missing the fix from: commit 5ed6aa6153110050c29bcd600a1424014cfbf1d4 Author: Ian Jackson Date: Wed Feb 20 16:30:05 2008 +0000 Use new CTYPE macro for This avoids passing a negative int to isfoobar, which is not allowed Thanks to Christoph Egger for pointing it out (although we do not use his proposed fix). (cherry picked from commit 053eb0b2d2235c5810c9fe2180d5d61d95036340) --- diff --git a/block-vvfat.c b/block-vvfat.c index c587bcf5..1f315155 100644 --- a/block-vvfat.c +++ b/block-vvfat.c @@ -1055,7 +1055,7 @@ DLOG(if (stderr == NULL) { i = strrchr(dirname, ':') - dirname; assert(i >= 3); - if (dirname[i-2] == ':' && isalpha(dirname[i-1])) + if (dirname[i-2] == ':' && CTYPE(isalpha,dirname[i-1])) /* workaround for DOS drive names */ dirname += i-1; else