X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=e178fe0e180e9e687c2f3c92c65bbfdb26d7d9bb;hp=87bf711f0d7a3794b7a6539c698a44457e984c28;hb=165a3886ab506f4c13eac4f178a58493432a00ec;hpb=38230c2ba5938078c9c278940679923f2489978d;ds=sidebyside diff --git a/stdout.c b/stdout.c index 87bf711f..e178fe0e 100644 --- a/stdout.c +++ b/stdout.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2008 Andre Noll + * Copyright (C) 2006-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -68,14 +68,14 @@ static void stdout_post_select(struct sched *s, struct task *t) } if (!FD_ISSET(STDOUT_FILENO, &s->wfds)) return; - ret = write(STDOUT_FILENO, sot->buf, *sot->loaded); + ret = write(STDOUT_FILENO, *sot->bufp, *sot->loaded); if (ret < 0) { t->error = -ERRNO_TO_PARA_ERROR(errno); return; } *sot->loaded -= ret; if (*sot->loaded) - memmove(sot->buf, sot->buf + ret, *sot->loaded); + memmove(*sot->bufp, *sot->bufp + ret, *sot->loaded); } /**