diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2018-09-18 02:02:53 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2018-09-18 02:02:53 -0700 |
commit | 026f864b3254cb4e51d916b3439ad352653dcc28 (patch) | |
tree | 96b400989faf22243fcfaddd28ade4895afa0c7e /journal.c | |
parent | 395c4c8b7d251bcae9b7092cbc73c1665c1f17ec (diff) | |
download | journal-026f864b3254cb4e51d916b3439ad352653dcc28.tar.gz journal-026f864b3254cb4e51d916b3439ad352653dcc28.tar.xz |
use array element for sizeof
Diffstat (limited to 'journal.c')
-rw-r--r-- | journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |