Fix passing plain char into ctype.h is* functions

Change-Id: I3d1fd585ba7f0bd8f6d074f0d2b86a20fa366072
This commit is contained in:
Stephan Bergmann 2017-03-22 21:56:57 +01:00
parent cb643b44ca
commit cea11039b2

View File

@ -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 */
}