projects
/
debian
/
tar
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04182eb
)
(FOLD): Do not assume that characters are unsigned.
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 31 Oct 2000 06:02:53 +0000
(06:02 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 31 Oct 2000 06:02:53 +0000
(06:02 +0000)
lib/fnmatch.c
patch
|
blob
|
history
diff --git
a/lib/fnmatch.c
b/lib/fnmatch.c
index 90930e43d150e7446907c6e7a17ab737325743fa..ce55c7ff04b6a6936899e6348c9aecdda72a5b5f 100644
(file)
--- a/
lib/fnmatch.c
+++ b/
lib/fnmatch.c
@@
-61,7
+61,9
@@
fnmatch (const char *pattern, const char *string, int flags)
register char c;
/* Note that this evaluates C many times. */
-# define FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER (c) ? tolower (c) : (c))
+# define FOLD(c) ((flags & FNM_CASEFOLD) && ISUPPER ((unsigned char) (c)) \
+ ? tolower ((unsigned char) (c)) \
+ : (c))
while ((c = *p++) != '\0')
{