fix defaultYes/defaultNo functions

git-svn-id: http://encfs.googlecode.com/svn/trunk@29 db9cf616-1c43-0410-9cb8-a902689de0d6
This commit is contained in:
Valient Gough 2008-06-03 02:29:45 +00:00
parent 1efb3ad2fa
commit ba74a77b3d

View File

@ -757,10 +757,10 @@ bool boolDefaultNo(const char *prompt)
fgets( answer, sizeof(answer), stdin );
cout << "\n";
if(tolower(answer[0]) == 'n')
return false;
else
if(tolower(answer[0]) == 'y')
return true;
else
return false;
}
static
@ -817,10 +817,10 @@ bool boolDefaultYes(const char *prompt)
fgets( answer, sizeof(answer), stdin );
cout << "\n";
if(tolower(answer[0]) == 'y')
return true;
else
if(tolower(answer[0]) == 'n')
return false;
else
return true;
}
static