forked from enlightenment/efl
fix non 0 terminated buffer in ethmubd slave
this fixes a potential non 0 terminated string buffer in ethumb slave process - harmless for apps, but might happen. this fixes CID 1193232
This commit is contained in:
parent
b91012f62c
commit
db447bece5
|
@ -151,6 +151,7 @@ _ec_pipe_str_read(struct _Ethumbd_Child *ec EINA_UNUSED, char **str)
|
|||
*str = NULL;
|
||||
return 0;
|
||||
}
|
||||
buf[size] = 0;
|
||||
|
||||
*str = strdup(buf);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue