aboutsummaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thumbs.c b/thumbs.c
index 40a3d93..c9e97c4 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -145,7 +145,7 @@ void tns_init(tns_t *tns, fileinfo_t *tns_files, const int *cnt, int *sel, win_t
const char *homedir, *dsuffix = "";
if (cnt != NULL && *cnt > 0)
- tns->thumbs = ecalloc(*cnt, sizeof(thumb_t));
+ tns->thumbs = ecalloc(*cnt, sizeof(*tns->thumbs));
else
tns->thumbs = NULL;
tns->files = tns_files;