Fix dumb mistake in the comparison function

This commit is contained in:
Philip Kelley 2013-03-19 15:43:34 -04:00
parent bef2a12cc0
commit cd01dd5d63

View File

@ -380,9 +380,7 @@ static int queue_differences(
if (!git_oid_cmp(&b_entry->oid, &d_entry->oid))
goto loop;
cmp = memcmp(b_entry->filename,
d_entry->filename,
b_entry->filename_len);
cmp = strcmp(b_entry->filename, d_entry->filename);
/* If the entries are both trees and they have the same name but are
* different, then we'll recurse after adding the right-hand entry */