diff options
author | 2003-09-30 18:27:01 +0000 | |
---|---|---|
committer | 2003-09-30 18:27:01 +0000 | |
commit | fb65766cdd4adeb30a251ffcc6fcc47ec072492f (patch) | |
tree | 215060403057e034701ae771f68c402dfeed89b5 | |
parent | security fix from http://www.openssl.org/news/secadv_20030930.txt (diff) | |
download | wireguard-openbsd-fb65766cdd4adeb30a251ffcc6fcc47ec072492f.tar.xz wireguard-openbsd-fb65766cdd4adeb30a251ffcc6fcc47ec072492f.zip |
Flush stdout after P operator. Improves interaction with bc(1).
-rw-r--r-- | usr.bin/dc/bcode.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/dc/bcode.c b/usr.bin/dc/bcode.c index 8948abfd780..e3c34d48850 100644 --- a/usr.bin/dc/bcode.c +++ b/usr.bin/dc/bcode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcode.c,v 1.6 2003/09/28 19:15:53 otto Exp $ */ +/* $OpenBSD: bcode.c,v 1.7 2003/09/30 18:27:01 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> @@ -17,7 +17,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: bcode.c,v 1.6 2003/09/28 19:15:53 otto Exp $"; +static const char rcsid[] = "$OpenBSD: bcode.c,v 1.7 2003/09/30 18:27:01 otto Exp $"; #endif /* not lint */ #include <ssl/ssl.h> @@ -452,9 +452,11 @@ pop_print(void) case BCODE_NUMBER: normalize(value->u.num, 0); print_ascii(stdout, value->u.num); + fflush(stdout); break; case BCODE_STRING: - printf("%s", value->u.string); + fputs(value->u.string, stdout); + fflush(stdout); break; } stack_free_value(value); |