summaryrefslogtreecommitdiff
path: root/xmlsecurity
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
commit38ce8a395d3a6523a97186798617e1ac166a7122 (patch)
tree0d4756028bec3800c2f60cc7211c53e2d4228a33 /xmlsecurity
parenta9d4cf627b1ead423661de37ab97cd33a582e881 (diff)
#i111733# fflush on stdin
Diffstat (limited to 'xmlsecurity')
-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 955cb94a0474..0ec576d8d3f8 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;
}