evas cache - up padding just in case i was off by one

coverity was complaining but it's a false positive - it seems to not
realze the loadopts_append does nul terminate at the end.
This commit is contained in:
Carsten Haitzler 2020-04-17 11:04:38 +01:00
parent 62b4e2a2da
commit 699fadd514
1 changed files with 1 additions and 1 deletions

View File

@ -777,7 +777,7 @@ evas_cache_image_mmap_request(Evas_Cache_Image *cache,
/* generate hkey from file+key+load opts */
file_length = sizeof (Eina_File*) * 2;
key_length = key ? strlen(key) : 6;
size = file_length + key_length + 132;
size = file_length + key_length + 400; // enough padding for loadopts_append
hkey = alloca(sizeof (char) * size);
pf = (char*) &f;
for (size = 0, i = 0; i < sizeof (Eina_File*); i++)