X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4e5db0ad4a5720b74670e3519dd1f2fea41980a1..ccc0d1eb1dda5fab0e021f7e82ac272535e56e2f:/util.c diff --git a/util.c b/util.c index 21ace4df..63af7dab 100644 --- 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(* (unsigned char *) s)) + *s = tolower(* (unsigned char *) s); s++; } }