cast argument to is* to unsigned char
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14502 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -60,7 +60,7 @@ domacro(int argc, char **argv)
|
||||
TOP:
|
||||
cp1 = macros[i].mac_start;
|
||||
while (cp1 != macros[i].mac_end) {
|
||||
while (isspace(*cp1)) {
|
||||
while (isspace((unsigned char)*cp1)) {
|
||||
cp1++;
|
||||
}
|
||||
cp2 = line;
|
||||
@@ -70,9 +70,9 @@ TOP:
|
||||
*cp2++ = *++cp1;
|
||||
break;
|
||||
case '$':
|
||||
if (isdigit(*(cp1+1))) {
|
||||
if (isdigit((unsigned char)*(cp1+1))) {
|
||||
j = 0;
|
||||
while (isdigit(*++cp1)) {
|
||||
while (isdigit((unsigned char)*++cp1)) {
|
||||
j = 10*j + *cp1 - '0';
|
||||
}
|
||||
cp1--;
|
||||
|
Reference in New Issue
Block a user