projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7c1d78
)
isspace should only get unsigned-char values or EOF
author
Ken Raeburn
<raeburn@mit.edu>
Fri, 1 Jul 2011 03:26:53 +0000
(
03:26
+0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Fri, 1 Jul 2011 03:26:53 +0000
(
03:26
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25010
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/kadm5/alt_prof.c
patch
|
blob
|
history
diff --git
a/src/lib/kadm5/alt_prof.c
b/src/lib/kadm5/alt_prof.c
index 6537d302573fedde678722e039b965a9fb6127ba..35f078e1accec331368229cce495bc5e5efc7a91 100644
(file)
--- a/
src/lib/kadm5/alt_prof.c
+++ b/
src/lib/kadm5/alt_prof.c
@@
-1161,9
+1161,11
@@
krb5_match_config_pattern(const char *string, const char *pattern)
int len = strlen(pattern);
for (ptr = strstr(string,pattern); ptr != 0; ptr = strstr(ptr+len,pattern)) {
- if (ptr == string || isspace(*(ptr-1)) || *(ptr-1) ==',') {
+ if (ptr == string
+ || isspace((unsigned char)*(ptr-1))
+ || *(ptr-1) ==',') {
next = *(ptr + len);
- if (next == '\0' || isspace(next) || next ==',') {
+ if (next == '\0' || isspace(
(unsigned char)
next) || next ==',') {
return TRUE;
}
}