summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/upload.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-11-15 12:50:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-11-15 12:50:38 +0300
commitf6f193f8d9ef286699be2c2282a9c448f7668842 (patch)
treeeb5ca088d0ce320fc6f78a73c857e5899ab51bf0 /protocols/IcqOscarJ/src/upload.cpp
parent854f47adb115f3d03d6a64543178e84877acb0b4 (diff)
fixes #1031 (ICQ password must be of 14 chars most)
Diffstat (limited to 'protocols/IcqOscarJ/src/upload.cpp')
-rw-r--r--protocols/IcqOscarJ/src/upload.cpp4
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);
}
}