summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/journal.c b/journal.c
index 08ddf09..38c3996 100644
--- a/journal.c
+++ b/journal.c
@@ -71,7 +71,7 @@ int main()
{
size_t max_fn_size = 0;
load_entries(ENTRY_DIR, &max_fn_size);
- qsort(entries, num_entries, sizeof(char *), entry_cmp);
+ qsort(entries, num_entries, sizeof(entries[0]), entry_cmp);
puts(
"<!DOCTYPE html>\n"