forked from enlightenment/efl
ethumb - fix short alloc on stack not including nul char space
fix space for nul byte with alloca.
This commit is contained in:
parent
eace1d1d5f
commit
e8abe97161
|
@ -913,7 +913,7 @@ _ethumb_generate_hash(const char *file)
|
||||||
{
|
{
|
||||||
char *tmp;
|
char *tmp;
|
||||||
|
|
||||||
tmp = alloca(length);
|
tmp = alloca(length + 1);
|
||||||
length = getxattr(file, "user.e.md5", tmp, length);
|
length = getxattr(file, "user.e.md5", tmp, length);
|
||||||
|
|
||||||
/* check if we have at least something that look like a md5 hash */
|
/* check if we have at least something that look like a md5 hash */
|
||||||
|
|
Loading…
Reference in New Issue