aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib.c')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 69029a2c..e7dc45eb 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -160,7 +160,7 @@ void xputs(char *s)
void xputc(char c)
{
- if (EOF == fputc(c, stdout)) perror_exit("write");
+ if (EOF == fputc(c, stdout) || fflush(stdout)) perror_exit("write");
}
void xflush(void)