commit ac828da70e2a29074ed9e7cc8f333c92f270fe70
parent f1ba76ba21458461c28d2a690b02dacfcb166530
Author: Roberto Vargas <roberto.vargas@arm.com>
Date: Wed, 17 Oct 2018 14:51:30 +0100
[libc] Fix __putc()
All the pointers must be initialized to the base address
of the buffer allocated.
Change-Id: Ibd7c1d97745c6ca1791862e4cd05177f99787911
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/libc/__putc.c b/src/libc/__putc.c
@@ -51,6 +51,7 @@ __putc(int ch, FILE *fp)
return EOF;
}
fp->flags |= _IOALLOC;
+ fp->rp = fp->wp = fp->lp = fp->buf;
}
if (first) {