aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vncviewer/UserDialog.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/UserDialog.cxx b/vncviewer/UserDialog.cxx
index 0ac5009a..0c2559f3 100644
--- a/vncviewer/UserDialog.cxx
+++ b/vncviewer/UserDialog.cxx
@@ -65,7 +65,7 @@ void UserDialog::getUserPasswd(char** user, char** password)
ObfuscatedPasswd obfPwd(256);
FILE* fp;
- fp = fopen(passwordFileStr.buf, "r");
+ fp = fopen(passwordFileStr.buf, "rb");
if (!fp)
throw rfb::Exception(_("Opening password file failed"));