From 97dc9cac367aeeddf94a31131994e8c188534702 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Mon, 4 Aug 2014 10:44:35 +0100 Subject: [PATCH] ethumbd_slave: fix coverity defect Fixes CID 1193232 (string not null terminated) --- src/bin/ethumb_client/ethumbd_slave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/ethumb_client/ethumbd_slave.c b/src/bin/ethumb_client/ethumbd_slave.c index 294421d..387908b 100644 --- a/src/bin/ethumb_client/ethumbd_slave.c +++ b/src/bin/ethumb_client/ethumbd_slave.c @@ -130,7 +130,7 @@ _ec_pipe_str_read(struct _Ethumbd_Child *ec EINA_UNUSED, char **str) { int size; int r; - char buf[PATH_MAX]; + char buf[PATH_MAX] = { '\0' }; r = _ec_read_safe(STDIN_FILENO, &size, sizeof(size)); if (!r) -- 2.7.4