summaryrefslogtreecommitdiff
path: root/content/fetchers/file.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-11-14 21:01:51 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-11-14 21:01:51 +0000
commitc933b0aff94ecd5335690e2836963db4d9e331f1 (patch)
tree52b7105607e55460a208876c6af77b0676244c83 /content/fetchers/file.c
parent5e4e32923d0074647e1db463f931bfc9b69a4f10 (diff)
downloadnetsurf-c933b0aff94ecd5335690e2836963db4d9e331f1.tar.gz
netsurf-c933b0aff94ecd5335690e2836963db4d9e331f1.tar.bz2
Sort non zero-padded numerical filename parts correctly.
Diffstat (limited to 'content/fetchers/file.c')
-rw-r--r--content/fetchers/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/fetchers/file.c b/content/fetchers/file.c
index 4fe1c9867..c574c2160 100644
--- a/content/fetchers/file.c
+++ b/content/fetchers/file.c
@@ -508,7 +508,7 @@ static void fetch_file_process_dir(struct fetch_file_context *ctx,
int i; /* directory entry index */
int n; /* number of directory entries */
- n = scandir(ctx->path, &listing, 0, alphasort);
+ n = scandir(ctx->path, &listing, 0, dir_sort_alpha);
if (n < 0) {
fetch_file_process_error(ctx,
fetch_file_errno_to_http_code(errno));