summaryrefslogtreecommitdiff
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
parentb91012f62c73172d1d518dc74e37b9a63689dba1 (diff)
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)
151 *str = NULL; 151 *str = NULL;
152 return 0; 152 return 0;
153 } 153 }
154 buf[size] = 0;
154 155
155 *str = strdup(buf); 156 *str = strdup(buf);
156 return 1; 157 return 1;