index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <shiningxc@gmail.com> | 2009-09-26 00:58:42 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-10-11 15:12:20 -0500 |
commit | caea098c2191a2d94a28e90bfef958c34473a5a4 (patch) | |
tree | f27ec0455b22930ae74ee6eb4386eef6e2d9a447 /src | |
parent | 35bbc96b99a8f9c8534b20d0ff7a30526b7d957d (diff) |
-rw-r--r-- | src/pacman/util.c | 6 |
diff --git a/src/pacman/util.c b/src/pacman/util.c index 0351556e..da2000ea 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -297,7 +297,7 @@ char *strtoupper(char *str) char *ptr = str; while(*ptr) { - (*ptr) = toupper(*ptr); + (*ptr) = toupper((unsigned char)*ptr); ptr++; } return str; @@ -314,7 +314,7 @@ char *strtrim(char *str) return(str); } - while(isspace(*pch)) { + while(isspace((unsigned char)*pch)) { pch++; } if(pch != str) { @@ -327,7 +327,7 @@ char *strtrim(char *str) } pch = (str + (strlen(str) - 1)); - while(isspace(*pch)) { + while(isspace((unsigned char)*pch)) { pch--; } *++pch = '\0'; |