]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
Use CTYPE for isalpha in block-vvfat.c.
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 28 Aug 2008 14:32:50 +0000 (15:32 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 28 Aug 2008 14:32:50 +0000 (15:32 +0100)
This call was missing the fix from:

  commit 5ed6aa6153110050c29bcd600a1424014cfbf1d4
  Author: Ian Jackson <iwj@mariner.uk.xensource.com>
  Date:   Wed Feb 20 16:30:05 2008 +0000

      Use new CTYPE macro for <ctype.h>

      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).

block-vvfat.c

index c587bcf58a5023871a4c48568d60353ccb5b8e56..1f315155ba20a2c30598f682eee482d08fe80280 100644 (file)
@@ -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