forked from enlightenment/efl
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:
parent
9ea4bb8fc7
commit
970b620f5a
|
@ -929,7 +929,7 @@ _ethumb_generate_hash(const char *file)
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(file, NULL);
|
||||||
|
|
||||||
uri = alloca(3 * strlen(file) + 9);
|
uri = alloca(3 * strlen(file) + 9);
|
||||||
memcpy(uri, "file://", sizeof("file://") - 1);
|
memcpy(uri, "file://", sizeof("file://"));
|
||||||
t = uri + sizeof("file://") - 1;
|
t = uri + sizeof("file://") - 1;
|
||||||
|
|
||||||
for (c = (const unsigned char *)file; *c != '\0'; c++)
|
for (c = (const unsigned char *)file; *c != '\0'; c++)
|
||||||
|
|
Loading…
Reference in New Issue