summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
17144b8)
isalpha is problematic for signed chars and we assume drive letters are
[a-zA-Z] only; also isalpha depends locale.
#ifdef WIN32
if (*p == '\\')
return 1;
#ifdef WIN32
if (*p == '\\')
return 1;
- if (*p && p[1] == ':' && isalpha(*p))
+ if (*p && p[1] == ':' &&
+ ((*p >= 'A' && *p <= 'Z') || (*p >= 'a' && *p <= 'z')))
return 1;
#endif
return 0;
return 1;
#endif
return 0;