Commit c42d5542 authored by Olof-Joachim Frahm's avatar Olof-Joachim Frahm
Browse files

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

parent c41e7244
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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]);
	}