aboutsummaryrefslogtreecommitdiff
path: root/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'helper.c')
-rw-r--r--helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/helper.c b/helper.c
index d6ae531..3fd496f 100644
--- a/helper.c
+++ b/helper.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/06 18:13:38 by cacharle #+# #+# */
-/* Updated: 2020/02/06 18:13:39 by cacharle ### ########.fr */
+/* Updated: 2020/02/21 01:14:37 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -47,7 +47,7 @@ void test_tear_down(void)
char *read_stdout_buf(void)
{
fflush(stdout);
- buf[0] = 0;
+ bzero(buf, BUF_SIZE + 1);
int ret = read(pipefd[0], buf, BUF_SIZE);
if (ret != -1)
buf[ret] = '\0';