From e9dfcb0d81dc577b7b7aebf7c3fef7f119766080 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20=C3=85strand?= Date: Wed, 19 Jan 2005 13:18:58 +0000 Subject: [PATCH] The passwordfile must be opened binary. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@104 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- vncviewer/cview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vncviewer/cview.cxx b/vncviewer/cview.cxx index fd5d2c5e..9406c110 100644 --- a/vncviewer/cview.cxx +++ b/vncviewer/cview.cxx @@ -1491,7 +1491,7 @@ void CView::invertRect(const Rect& r) { bool CView::getUserPasswd(char** user, char** password) { if (!user && options.passwordFile.buf[0]) { - FILE* fp = fopen(options.passwordFile.buf, "r"); + FILE* fp = fopen(options.passwordFile.buf, "rb"); if (!fp) return false; char data[256]; int datalen = fread(data, 1, 256, fp); -- 2.39.5