summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/merge_dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/merge_dir.c b/util/merge_dir.c
index 2b2fd85b..304f0927 100644
--- a/util/merge_dir.c
+++ b/util/merge_dir.c
@@ -11,8 +11,8 @@ void usage() {
fileheader_t *fh;
int dir_cmp(const void *a, const void *b)
{
- return strncasecmp(((fileheader_t *)a)->filename,
- ((fileheader_t *)b)->filename, 12);
+ return (atoi( &((fileheader_t *)a)->filename[2] ) -
+ atoi( &((fileheader_t *)a)->filename[2] ));
}
int main(int argc, char **argv) {