From d0391b7304f1db8ca31e33a476899e5fcdc48ae2 Mon Sep 17 00:00:00 2001 From: Chris Punches Date: Wed, 7 Apr 2021 00:00:00 -0400 Subject: [PATCH] woops --- src/Sproc/Sproc.cpp | 4 ++-- test/environments/rex.variables | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 test/environments/rex.variables diff --git a/src/Sproc/Sproc.cpp b/src/Sproc/Sproc.cpp index db0fdf2..bc32b13 100644 --- a/src/Sproc/Sproc.cpp +++ b/src/Sproc/Sproc.cpp @@ -311,8 +311,8 @@ int Sproc::execute(std::string shell, std::string environment_file, std::string close(child_stderr_pipe[WRITE_END]); // buffers for reading from child fd's - char stdout_buf[1000] = {0}; - char stderr_buf[1000] = {0}; + char stdout_buf[1] = {0}; + char stderr_buf[1] = {0}; // will contain a set of file descriptors to monitor representing stdout and stderr of the child process fd_set readfds; diff --git a/test/environments/rex.variables b/test/environments/rex.variables new file mode 100644 index 0000000..ab2d82b --- /dev/null +++ b/test/environments/rex.variables @@ -0,0 +1,11 @@ +#!/usr/bin/bash + + + + + +set -a + +echo "variables file says hello and set a variable named TEST_VAR" +TEST_VAR="999" +