index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/util.c | 3 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 0c2e3360..053d7b98 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -144,13 +144,14 @@ char *_alpm_strtoupper(char *str) char *_alpm_strtrim(char *str) { char *pch = str; + while(isspace(*pch)) { pch++; } if(pch != str) { memmove(str, pch, (strlen(pch) + 1)); } - + pch = (char*)(str + (strlen(str) - 1)); while(isspace(*pch)) { pch--; |