From c42d55428b2a5c7ab1281aa9906cff2aaac50fe9 Mon Sep 17 00:00:00 2001 From: Olof-Joachim Frahm Date: Wed, 5 Apr 2017 23:02:49 +0200 Subject: `sizeof(char)` is defined to be 1. --- src/thumbnail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/thumbnail.c b/src/thumbnail.c index d400507..462b478 100644 --- a/src/thumbnail.c +++ b/src/thumbnail.c @@ -657,7 +657,7 @@ char *feh_thumbnail_get_name_md5(char *uri) md5_finish(&pms, digest); /* print the md5 as hex to a string */ - md5_name = emalloc(32 + 4 + 1 * sizeof(char)); /* md5 + .png + '\0' */ + md5_name = emalloc(32 + 4 + 1); /* md5 + .png + '\0' */ for (i = 0, pos = md5_name; i < 16; i++, pos += 2) { sprintf(pos, "%02x", digest[i]); } -- cgit v1.2.3