summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
authorOlof-Joachim Frahm <olof@macrolet.net>2017-04-05 23:02:49 +0200
committerOlof-Joachim Frahm <olof@macrolet.net>2017-04-05 23:02:49 +0200
commitc42d55428b2a5c7ab1281aa9906cff2aaac50fe9 (patch)
tree3917d993b93b4cbc146d5c201aa4f0c3081955b7 /src/thumbnail.c
parentc41e7244a1283362161b3f72034d68b264f19d35 (diff)
`sizeof(char)` is defined to be 1.
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r--src/thumbnail.c2
1 files changed, 1 insertions, 1 deletions
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]);
}