Fix passing plain char into ctype.h is* functions
Change-Id: I3d1fd585ba7f0bd8f6d074f0d2b86a20fa366072
This commit is contained in:
parent
cb643b44ca
commit
cea11039b2
@ -795,7 +795,8 @@ static inline void print_fullpaths(char* line)
|
||||
end = token;
|
||||
/* hard to believe that in this day and age drive letters still exist */
|
||||
if (*end && (':' == *(end+1)) &&
|
||||
(('\\' == *(end+2)) || ('/' == *(end+2))) && isalpha(*end))
|
||||
(('\\' == *(end+2)) || ('/' == *(end+2))) &&
|
||||
isalpha((unsigned char)*end))
|
||||
{
|
||||
end = end + 3; /* only one cross, err drive letter per filename */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user