X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gui.c;h=728fb9b72c815237ca5aa51c9d590afa312e0464;hp=a4ee72758d6944cbd28aa8476049268ebb762256;hb=a44fa6f118540d47cc575cbc62d22a6e4bb784e9;hpb=3879481ddabc38236b9eee979a090c2a9bfa74d3 diff --git a/gui.c b/gui.c index a4ee7275..728fb9b7 100644 --- a/gui.c +++ b/gui.c @@ -951,7 +951,7 @@ static int open_stat_pipe(void) return ret; } -#define COMMAND_BUF_SIZE 4096 +#define COMMAND_BUF_SIZE 32768 /* * This is the core select loop. Besides the (internal) signal @@ -1023,6 +1023,10 @@ repeat: if (command_fds[!i] < 0) /* both fds closed */ return 0; } + if (cbo[i] == COMMAND_BUF_SIZE - 1) { + PARA_NOTICE_LOG("discarding overlong line"); + cbo[i] = 0; + } } } ret = read_stat_pipe(&rfds);