More small windows int types fixes.

--HG--
branch : WINDOWSPORT
This commit is contained in:
Jean-Francois Dockes
2015-09-01 15:03:21 +02:00
parent 074d1b861a
commit 2fe75dba28
8 changed files with 29 additions and 21 deletions
+3 -1
View File
@@ -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));
+1 -1
View File
@@ -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;