ref: 4b4d68487c7fcc65f589be88390ce658d9d43a13
parent: ef1bcc7338e92e44824d1361465d1bc6ec3bd9c6
author: cinap_lenrek <[email protected]>
date: Wed Jun 19 20:04:58 EDT 2019
stdio: fix putc(), plan9 version
--- a/sys/include/stdio.h
+++ b/sys/include/stdio.h
@@ -92,7 +92,7 @@
#define getchar() getc(stdin)
char *gets(char *);
int putc(int, FILE *);
-#define putc(c, f) ((f)->wp>=(f)->rp?_IO_putc(c, f):(*(f)->wp++=c)&_IO_CHMASK)
+#define putc(c, f) ((f)->wp>=(f)->rp?_IO_putc(c, f):(*(f)->wp++=(c)&_IO_CHMASK))
int _IO_putc(int, FILE *);
int putchar(int);
#define putchar(c) putc(c, stdout)