]> granicus.if.org Git - sudo/commitdiff
fix char subscript
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 12 Mar 2009 00:03:04 +0000 (00:03 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 12 Mar 2009 00:03:04 +0000 (00:03 +0000)
fileops.c

index 2d3588368a581a29d1f3fbb8ce89e4cca5fbbd37..05f5676e0f419ad86d07efff0ed84a043b2ab9f0 100644 (file)
--- a/fileops.c
+++ b/fileops.c
@@ -172,7 +172,7 @@ sudo_parseln(fp)
 
        /* Trim leading and trailing whitespace/newline */
        len = strlen(buf);
-       while (len > 0 && isspace(buf[len - 1]))
+       while (len > 0 && isspace((unsigned char)buf[len - 1]))
            buf[--len] = '\0';
        for (cp = buf; isblank(*cp); cp++)
            continue;