From: ceriel Date: Mon, 19 Jun 1989 11:10:58 +0000 (+0000) Subject: Avoid I/O buffering when using the checking malloc X-Git-Tag: release-5-5~2379 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c48f281b39dd6ace4571821a5a79c1874cf26b68;p=ack.git Avoid I/O buffering when using the checking malloc --- diff --git a/modules/src/malloc/check.c b/modules/src/malloc/check.c index c33836c86..4a5225c2c 100644 --- a/modules/src/malloc/check.c +++ b/modules/src/malloc/check.c @@ -287,6 +287,7 @@ check_work_empty(s) char *s; { public int Error(fmt, s, ml) char *fmt, *s; mallink *ml; { + setbuf(stdout, (char *) 0); printf("%s: ", s); printf(fmt, (long)ml); printf("\n");