From: Kern Sibbald Date: Thu, 13 Oct 2005 16:05:16 +0000 (+0000) Subject: Fix buffer size in bpipe.c X-Git-Tag: Release-7.0.0~8402 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a6c3078d4cfc2aa3957974c630d6171fd788447f;p=bacula%2Fbacula Fix buffer size in bpipe.c git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2438 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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;