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:
Carsten Haitzler 2014-08-12 17:45:08 +09:00
parent b91012f62c
commit db447bece5
1 changed files with 1 additions and 0 deletions

View File

@ -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;