stdout.c: Brown paper bag fix
authorAndre <maan@p133.(none)>
Sat, 8 Jul 2006 02:14:27 +0000 (04:14 +0200)
committerAndre <maan@p133.(none)>
Sat, 8 Jul 2006 02:14:27 +0000 (04:14 +0200)
stdout.c

index 2e86fe9..1656bcc 100644 (file)
--- 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;
 }