aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ethumb_client
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-12 17:45:08 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-12 22:24:43 +0900
commitdb447bece5a5929e31ae2282605fe783f5b1444d (patch)
tree4c35949de780e862ebac566501bcf2f531389070 /src/bin/ethumb_client
parentautotools: try to simplify our Makefile.am to reduce warnings. (diff)
downloadefl-db447bece5a5929e31ae2282605fe783f5b1444d.tar.gz
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
Diffstat (limited to 'src/bin/ethumb_client')
-rw-r--r--src/bin/ethumb_client/ethumbd_slave.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/ethumb_client/ethumbd_slave.c b/src/bin/ethumb_client/ethumbd_slave.c
index 387908b6e8..735c8c37e5 100644
--- a/src/bin/ethumb_client/ethumbd_slave.c
+++ b/src/bin/ethumb_client/ethumbd_slave.c
@@ -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;