1.1 --- a/loader/utility.cpp Fri Apr 15 00:30:15 2011 -0400
1.2 +++ b/loader/utility.cpp Sat Apr 23 21:35:10 2011 -0500
1.3 @@ -125,7 +125,7 @@
1.4 size_t len = strlen(buffer);
1.5
1.6 /* Loop through buffer backwards while replacing whitespace chars with null chars */
1.7 - for (size_t i = len - 1; i >= 0; i--)
1.8 + for (size_t i = len - 1; i < len; i--)
1.9 {
1.10 if (isspace((unsigned char) buffer[i]))
1.11 buffer[i] = '\0';
1.12 @@ -245,7 +245,7 @@
1.13 /* If we're at a different non-alphanumeric, the next character MUST match */
1.14 if ((((unsigned)path1[pos1] & 0x80) && path1[pos1] != path2[pos2])
1.15 ||
1.16 - !isalpha(path1[pos1]) && (path1[pos1] != path2[pos2])
1.17 + (!isalpha(path1[pos1]) && (path1[pos1] != path2[pos2]))
1.18 )
1.19 {
1.20 return false;