]> source.dussan.org Git - tigervnc.git/commit
Fix -PasswordFile, which was causing asserts. Since we are providing
authorPeter Åstrand <astrand@cendio.se>
Wed, 3 Dec 2008 11:57:18 +0000 (11:57 +0000)
committerPeter Åstrand <astrand@cendio.se>
Wed, 3 Dec 2008 11:57:18 +0000 (11:57 +0000)
commit8ace9157de31f768504d8b80ab49adcc88b25329
tree01c89828a51e326cdf630bb9afe0914a77611be5
parent73683202a937456b296115ba53c96795400ffbb8
Fix -PasswordFile, which was causing asserts. Since we are providing
our own buffer for ObfuscatedPasswd, we need to take it (so that it's
set to zero) to prevent CharArray destructor from trying to free it.

Also, memset the fixed length of the data variable, rather than rely
on strlen, since the string might not be null terminated.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3288 3789f03b-4d11-0410-bbf8-ca57d06f2519
win/vncviewer/CConn.cxx