diff options
author | George Hazan <ghazan@miranda.im> | 2017-11-15 12:50:38 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-11-15 12:50:38 +0300 |
commit | f6f193f8d9ef286699be2c2282a9c448f7668842 (patch) | |
tree | eb5ca088d0ce320fc6f78a73c857e5899ab51bf0 /protocols/IcqOscarJ/src/icq_proto.h | |
parent | 854f47adb115f3d03d6a64543178e84877acb0b4 (diff) |
fixes #1031 (ICQ password must be of 14 chars most)
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_proto.h')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/icq_proto.h b/protocols/IcqOscarJ/src/icq_proto.h index e8d58150bc..37d46889f1 100644 --- a/protocols/IcqOscarJ/src/icq_proto.h +++ b/protocols/IcqOscarJ/src/icq_proto.h @@ -161,7 +161,7 @@ struct CIcqProto : public PROTO<CIcqProto> DWORD m_dwLocalUIN;
BYTE m_bConnectionLost;
- char m_szPassword[PASSWORDMAXLEN];
+ char m_szPassword[PASSWORDMAXLEN+1];
BYTE m_bRememberPwd;
int cheekySearchId;
@@ -847,7 +847,8 @@ struct CIcqProto : public PROTO<CIcqProto> //----| utilities.cpp |---------------------------------------------------------------
char* ConvertMsgToUserSpecificAnsi(MCONTACT hContact, const char* szMsg);
- char* GetUserStoredPassword(char *szBuffer, size_t cbSize);
+ template <size_t cbSize>
+ char* GetUserStoredPassword(char(&szBuffer)[cbSize]);
char* GetUserPassword(BOOL bAlways);
WORD GetMyStatusFlags();
|