scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 775f1ae62de6153455a9a30f88ccacb4d7f8ad65
parent a69c48367ae383abcbc749cd56509ed8a52fb325
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  3 Nov 2022 05:58:34 +0100

libc/stdio: Fix pointer type in _allocbuf()

Diffstat:
Msrc/libc/stdio/_allocbuf.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libc/stdio/_allocbuf.c b/src/libc/stdio/_allocbuf.c @@ -7,7 +7,7 @@ int _allocbuf(FILE *fp) { - char *bp; + unsigned char *bp; if ((bp = malloc(BUFSIZ)) == NULL) { fp->flags |= _IOERR;