setbuf.3: tfix

Reported-by: Zhiheng Li <phoenix_lzh@sina.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-05-09 22:19:36 +02:00 committed by Michael Kerrisk
parent 67238a538d
commit b46edd9161
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ int
main(void)
{
char buf[BUFSIZ];
setbuf(stdin, buf);
setbuf(stdout, buf);
printf("Hello, world!\en");
return 0;
}