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