summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_proto.h')
-rw-r--r--protocols/IcqOscarJ/src/icq_proto.h5
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();