mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-25 21:41:44 +00:00
fixed incorrect strcmp return value check in Sys_ListFiles
thank you Sergei
This commit is contained in:
parent
afc81437c3
commit
26ddd7e6cc
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ char **Sys_ListFiles( const char *directory, const char *extension, const char *
|
|||
do {
|
||||
flag = 0;
|
||||
for(i=1; i<nfiles; i++) {
|
||||
if ( strcmp( listCopy[i-1], listCopy[i] ) == 1 ) {
|
||||
if ( strcmp( listCopy[i-1], listCopy[i] ) > 0 ) {
|
||||
char *temp = listCopy[i];
|
||||
listCopy[i] = listCopy[i-1];
|
||||
listCopy[i-1] = temp;
|
||||
|
|
Loading…
Reference in a new issue