Fix reverse-sort bug

This commit is contained in:
Bobbi Webber-Manners 2020-02-06 00:05:07 -05:00
parent df8b246940
commit 14c8c83a88
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ int compare(const void *a, const void *b) {
int rc;
rc = strncmp(((struct fileent*)a)->name,
((struct fileent*)b)->name, 15);
return (doreverse ? !rc : rc);
return (doreverse ? -rc : rc);
}
/*