svn rev #25010: trunk/src/lib/kadm5/
raeburn@MIT.EDU
raeburn at MIT.EDU
Thu Jun 30 23:26:53 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=25010
Commit By: raeburn
Log Message:
isspace should only get unsigned-char values or EOF
Changed Files:
U trunk/src/lib/kadm5/alt_prof.c
Modified: trunk/src/lib/kadm5/alt_prof.c
===================================================================
--- trunk/src/lib/kadm5/alt_prof.c 2011-07-01 03:26:50 UTC (rev 25009)
+++ trunk/src/lib/kadm5/alt_prof.c 2011-07-01 03:26:53 UTC (rev 25010)
@@ -1161,9 +1161,11 @@
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;
}
}
More information about the cvs-krb5
mailing list