ethumb - fix short alloc on stack not including nul char space

fix space for nul byte with alloca.
This commit is contained in:
Carsten Haitzler 2019-08-15 19:17:35 +01:00
parent eace1d1d5f
commit e8abe97161
1 changed files with 1 additions and 1 deletions

View File

@ -913,7 +913,7 @@ _ethumb_generate_hash(const char *file)
{
char *tmp;
tmp = alloca(length);
tmp = alloca(length + 1);
length = getxattr(file, "user.e.md5", tmp, length);
/* check if we have at least something that look like a md5 hash */