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
This commit is contained in:
Carsten Haitzler 2019-08-06 14:53:59 +01:00
parent ccd0da5f02
commit 031e868b65
1 changed files with 1 additions and 1 deletions

View File

@ -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);