Correction from Nelson Beebe: argument to functions such as isspace()
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index 21ace4d..bdde8b4 100644 (file)
--- a/util.c
+++ b/util.c
@@ -532,7 +532,8 @@ void glob_expand(char *base1, char **argv, int *argc, int maxargs)
 void strlower(char *s)
 {
        while (*s) {
-               if (isupper(*s)) *s = tolower(*s);
+               if (isupper((int) *s))
+                       *s = tolower((int) *s);
                s++;
        }
 }