diff options
Diffstat (limited to 'protocols/IcqOscarJ/src/upload.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/upload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/upload.cpp b/protocols/IcqOscarJ/src/upload.cpp index f714c9cecc..431d946028 100644 --- a/protocols/IcqOscarJ/src/upload.cpp +++ b/protocols/IcqOscarJ/src/upload.cpp @@ -74,10 +74,10 @@ int ChangeInfoData::UploadSettings(void) mir_strcpy(ppro->m_szPassword, tmp);
hUpload[1] = (HANDLE)ppro->icq_changeUserPasswordServ(tmp);
- char szPwd[PASSWORDMAXLEN] = {0};
// password is stored in DB, update
- if (ppro->GetUserStoredPassword(szPwd, sizeof(szPwd)))
+ char szPwd[PASSWORDMAXLEN + 1];
+ if (ppro->GetUserStoredPassword(szPwd))
ppro->setString("Password", tmp);
}
}
|