From a6c3078d4cfc2aa3957974c630d6171fd788447f Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 13 Oct 2005 16:05:16 +0000 Subject: [PATCH] Fix buffer size in bpipe.c git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2438 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/bpipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/lib/bpipe.c b/bacula/src/lib/bpipe.c index cf505e0584..0e9b9d54a9 100644 --- a/bacula/src/lib/bpipe.c +++ b/bacula/src/lib/bpipe.c @@ -338,7 +338,7 @@ int run_program_full_output(char *prog, int wait, POOLMEM *results) sm_check(__FILE__, __LINE__, false); tmp[0] = 0; while (1) { - fgets(buf, sizeof(buf), bpipe->rfd); + fgets(buf, bufsize, bpipe->rfd); pm_strcat(tmp, buf); if (feof(bpipe->rfd)) { stat1 = 0; -- 2.39.5