From 9141cac3c98356dd1230570374422e0a5c14c006 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 26 Mar 2017 20:33:55 +1000 Subject: [PATCH] maybe fix breakage? --- doors.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doors.c b/doors.c index 30470d4..ea614e1 100644 --- a/doors.c +++ b/doors.c @@ -180,7 +180,7 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c struct termios oldit2; char inbuf[256]; - char outbuf[256]; + char outbuf[512]; int h; int g; timeoutpaused = 1; @@ -310,7 +310,14 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c close(master); break; } - write(door_out, inbuf, len); + g = 0; + for (h=0;h