efm min - copy in nul byte terminator so be sure

coverity was not happy with this but it's harmless to copy that extra
nul byte... so do it

fix CID 1403950
enlightenment-0.23
Carsten Haitzler 4 years ago
parent ccd0da5f02
commit 031e868b65
  1. 2
      src/bin/e_fm_mime.c

@ -83,7 +83,7 @@ try_e_icon_generic:
/* 3. look up icon in theme */
try_theme:
memcpy(buf, "e/icons/fileman/mime/", sizeof("e/icons/fileman/mime/") - 1);
memcpy(buf, "e/icons/fileman/mime/", sizeof("e/icons/fileman/mime/"));
eina_strlcpy(buf + sizeof("e/icons/fileman/mime/") - 1, mime,
sizeof(buf) - (sizeof("e/icons/fileman/mime/") - 1));
val = (char *)e_theme_edje_file_get("base/theme/fileman", buf);

Loading…
Cancel
Save