aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/ChangeLog7
-rw-r--r--g10/status.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index f93a1c7dd..f4205f067 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,10 @@
+2004-07-20 David Shaw <[email protected]>
+
+ * status.c (do_get_from_fd): Flush stdout if status isn't flushing
+ it for us. This guarantees that any menus that were displayed
+ before the prompt don't get stuck in a buffer. Noted by Peter
+ Palfrader. This is Debian bug #254072.
+
2004-07-20 Werner Koch <[email protected]>
* plaintext.c (handle_plaintext): Make number buffer larger. With
diff --git a/g10/status.c b/g10/status.c
index 9b0cbe82c..4bca9fac2 100644
--- a/g10/status.c
+++ b/g10/status.c
@@ -538,6 +538,9 @@ do_get_from_fd( const char *keyword, int hidden, int bool )
int i, len;
char *string;
+ if(statusfp!=stdout)
+ fflush(stdout);
+
write_status_text( bool? STATUS_GET_BOOL :
hidden? STATUS_GET_HIDDEN : STATUS_GET_LINE, keyword );