diff --git a/vncviewer/UserDialog.cxx b/vncviewer/UserDialog.cxx index 901503c6dd..13821a9c54 100644 --- a/vncviewer/UserDialog.cxx +++ b/vncviewer/UserDialog.cxx @@ -109,7 +109,7 @@ void UserDialog::getUserPasswd(bool secure_, std::string* user, } if (!user && passwordFileName[0]) { - std::vector obfPwd(256); + std::vector obfPwd(8); FILE* fp; fp = fopen(passwordFileName, "rb");