summaryrefslogtreecommitdiff
path: root/journal.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2018-09-18 02:02:53 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2018-09-18 02:02:53 -0700
commit026f864b3254cb4e51d916b3439ad352653dcc28 (patch)
tree96b400989faf22243fcfaddd28ade4895afa0c7e /journal.c
parent395c4c8b7d251bcae9b7092cbc73c1665c1f17ec (diff)
downloadjournal-026f864b3254cb4e51d916b3439ad352653dcc28.tar.gz
journal-026f864b3254cb4e51d916b3439ad352653dcc28.tar.xz
use array element for sizeof
Diffstat (limited to 'journal.c')
-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"