summaryrefslogtreecommitdiff
path: root/xmlsecurity/tools/demo/util2.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-06 09:24:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-06 09:24:38 +0100
commit8e36ae20a5d9f9a4df87568229d4f4a87d028a0d (patch)
treea20673d66768c4958cdfb18bc92e0955f1ca7dc2 /xmlsecurity/tools/demo/util2.cxx
parentc3b94463f21c63d33fc260e87779ed80f15e6607 (diff)
#i111733# fflush on stdin
Diffstat (limited to 'xmlsecurity/tools/demo/util2.cxx')
-rw-r--r--xmlsecurity/tools/demo/util2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlsecurity/tools/demo/util2.cxx b/xmlsecurity/tools/demo/util2.cxx
index 1b2f99981..d7ab93388 100644
--- a/xmlsecurity/tools/demo/util2.cxx
+++ b/xmlsecurity/tools/demo/util2.cxx
@@ -384,7 +384,7 @@ void QueryPrintSignatureDetails( const SignatureInformations& SignatureInformati
{
char cShowDetails;
fprintf( stdout, "\nDisplay details (y/n) [y]?" );
- fflush(stdin);
+ fflush( stdout );
fscanf( stdin, "%c", &cShowDetails);
if ( cShowDetails == 'y' )
{
@@ -409,7 +409,7 @@ int QuerySelectNumber( int nMin, int nMax )
do
{
fprintf( stdout, "\nSelect <%d-%d>:", nMin, nMax ) ;
- fflush(stdin);
+ fflush( stdout );
fscanf( stdin, "%d", &sel ) ;
} while( ( sel < nMin ) || ( sel > nMax ) );
@@ -420,7 +420,7 @@ long QueryVerifySignature()
{
char answer;
fprintf( stdout, "\nFound a signature - verify this one (y/n) [y]?" );
- fflush(stdin);
+ fflush( stdout );
fscanf( stdin, "%c", &answer);
return (answer == 'n')?0:1;
}