More small windows int types fixes.
--HG-- branch : WINDOWSPORT
This commit is contained in:
@@ -125,7 +125,9 @@ static string idFileInternal(istream& input, const char *fn)
|
||||
// Except for a possible first line with 'From ', lines must
|
||||
// begin with whitespace or have a colon
|
||||
// (hope no one comes up with a longer header name !
|
||||
if (!isspace(cline[0])) {
|
||||
// Take care to convert to unsigned char because ms ctype does
|
||||
// like negative values
|
||||
if (!isspace((unsigned char)cline[0])) {
|
||||
char *cp = strchr(cline, ':');
|
||||
if (cp == 0 || (cp - cline) > 70) {
|
||||
LOGDEB2(("idfile: can't be mail header line: [%s]\n", cline));
|
||||
|
||||
@@ -520,7 +520,7 @@ bool path_isroot(const string& path)
|
||||
if (path.size() == 1 && path[0] == '/')
|
||||
return true;
|
||||
#ifdef _WIN32
|
||||
if (path.size == 3 && isalpha(path[0]) && path[1] == ':' && path[2] == '/')
|
||||
if (path.size() == 3 && isalpha(path[0]) && path[1] == ':' && path[2] == '/')
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user