diff -r 024416402896 -r 9563de0165f7 loader/utility.cpp --- a/loader/utility.cpp Fri Apr 15 00:30:15 2011 -0400 +++ b/loader/utility.cpp Sat Apr 23 21:35:10 2011 -0500 @@ -125,7 +125,7 @@ size_t len = strlen(buffer); /* Loop through buffer backwards while replacing whitespace chars with null chars */ - for (size_t i = len - 1; i >= 0; i--) + for (size_t i = len - 1; i < len; i--) { if (isspace((unsigned char) buffer[i])) buffer[i] = '\0'; @@ -245,7 +245,7 @@ /* If we're at a different non-alphanumeric, the next character MUST match */ if ((((unsigned)path1[pos1] & 0x80) && path1[pos1] != path2[pos2]) || - !isalpha(path1[pos1]) && (path1[pos1] != path2[pos2]) + (!isalpha(path1[pos1]) && (path1[pos1] != path2[pos2])) ) { return false;