Revision: 4586
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4586&view=rev
Author:   astrand
Date:     2011-07-14 11:25:40 +0000 (Thu, 14 Jul 2011)

Log Message:
-----------
The password file must be opened in binary mode. Otherwise, you might
get "bad obfuscated password length" errors on Windows.

Modified Paths:
--------------
    trunk/vncviewer/UserDialog.cxx

Modified: trunk/vncviewer/UserDialog.cxx
===================================================================
--- trunk/vncviewer/UserDialog.cxx      2011-07-14 02:59:42 UTC (rev 4585)
+++ trunk/vncviewer/UserDialog.cxx      2011-07-14 11:25:40 UTC (rev 4586)
@@ -65,7 +65,7 @@
     ObfuscatedPasswd obfPwd(256);
     FILE* fp;
 
-    fp = fopen(passwordFileStr.buf, "r");
+    fp = fopen(passwordFileStr.buf, "rb");
     if (!fp)
       throw rfb::Exception(_("Opening password file failed"));
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to