Skip to content
Snippets Groups Projects
Commit c42d5542 authored by Olof-Joachim Frahm's avatar Olof-Joachim Frahm
Browse files

`sizeof(char)` is defined to be 1.

parent c41e7244
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment