aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-04 18:10:29 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-04 18:11:21 -0800
commitd371256913d5baa993563a92d1f8d0ee844487b2 (patch)
tree636c1c619deb2e462e2ea8acc59c3f53c2b0a17b /exec.cpp
parenta7ec93b287bc208a10c6526e430874380b197519 (diff)
Fix for crash on "less test <tab>"
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec.cpp b/exec.cpp
index b3195fce..6f3ae549 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -1090,8 +1090,8 @@ void exec( parser_t &parser, job_t *j )
case INTERNAL_BUFFER:
{
- const char *buffer = io_buffer->out_buffer_ptr();
- size_t count = io_buffer->out_buffer_size();
+ const char *buffer = input_redirect->out_buffer_ptr();
+ size_t count = input_redirect->out_buffer_size();
pid = execute_fork(false);
if( pid == 0 )