From 87b07df1fadf0c9da648a24f886acc4a9cdfa22c Mon Sep 17 00:00:00 2001 From: Andre Date: Sat, 8 Jul 2006 04:14:27 +0200 Subject: [PATCH] stdout.c: Brown paper bag fix --- stdout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdout.c b/stdout.c index 2e86fe96..1656bcc9 100644 --- a/stdout.c +++ b/stdout.c @@ -82,6 +82,8 @@ void stdout_post_select(struct sched *s, struct task *t) if (ret <= 0) return; *sot->loaded -= ret; + if (*sot->loaded) + memmove(sot->buf, sot->buf + ret, *sot->loaded); t->ret = 1; } -- 2.39.5