From cd900bdc215bf787622e95989a5e66fbc69c6030 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 12 Mar 2009 00:03:04 +0000 Subject: [PATCH] fix char subscript --- fileops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileops.c b/fileops.c index 2d3588368..05f5676e0 100644 --- 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;