diff options
author | Martin Pool <mbp@samba.org> | 2002-04-11 02:25:53 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-04-11 02:25:53 +0000 |
commit | 32f761755e2cfee243a1513c9ea9871586463fa6 (patch) | |
tree | b9b71aa4a423961223f0715756c4c4d81e24afc2 /util.c | |
parent | c4fea82ff912c596e0e1e49218a67917be8df6df (diff) | |
download | rsync-32f761755e2cfee243a1513c9ea9871586463fa6.tar.gz |
Try to fix ctype issues by always calling these functions as
if (!isdigit(* (unsigned char *) p)) {
so that the argument is always in the range of unsigned char when
coerced to an int.
(See digit 1.)
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -532,8 +532,8 @@ void glob_expand(char *base1, char **argv, int *argc, int maxargs) void strlower(char *s) { while (*s) { - if (isupper((int) *s)) - *s = tolower((int) *s); + if (isupper(* (unsigned char *) s)) + *s = tolower(* (unsigned char *) s); s++; } } |