ethumb - make coverity happy by including null char

doesnt cost us much to memcpy the nul byte too to keep coverity happy.

fix CID 1402690
This commit is contained in:
Carsten Haitzler 2019-08-05 14:17:33 +01:00
parent 9ea4bb8fc7
commit 970b620f5a
1 changed files with 1 additions and 1 deletions

View File

@ -929,7 +929,7 @@ _ethumb_generate_hash(const char *file)
EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
uri = alloca(3 * strlen(file) + 9);
memcpy(uri, "file://", sizeof("file://") - 1);
memcpy(uri, "file://", sizeof("file://"));
t = uri + sizeof("file://") - 1;
for (c = (const unsigned char *)file; *c != '\0'; c++)