From 026f864b3254cb4e51d916b3439ad352653dcc28 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 18 Sep 2018 02:02:53 -0700 Subject: use array element for sizeof --- journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( "\n" -- cgit v1.2.3-70-g09d2