From 714b5dfb8f159c8d54ef42c905c3c85f4b4e7962 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 15 May 2015 12:58:09 +0000 Subject: - when data are dropped from the network buffer, the end of buffer should be '\0'; - valid ERR_LIST_UNAVAILABLE handler git-svn-id: http://svn.miranda-ng.org/main/trunk@13603 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_errors.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/MSN/src/msn_errors.cpp') diff --git a/protocols/MSN/src/msn_errors.cpp b/protocols/MSN/src/msn_errors.cpp index 6ced78f708..8e6a3a232a 100644 --- a/protocols/MSN/src/msn_errors.cpp +++ b/protocols/MSN/src/msn_errors.cpp @@ -56,9 +56,9 @@ int CMsnProto::MSN_HandleErrors(ThreadData* info, char* cmdString) case ERR_CONTACT_LIST_FAILED: case ERR_LIST_UNAVAILABLE: - char* tWords[3]; - if (sttDivideWords(cmdString, 3, tWords) == 3) - HReadBuffer(info, 0).surelyRead(atol(tWords[2])); + char* tWords[4]; + if (sttDivideWords(cmdString, SIZEOF(tWords), tWords) == SIZEOF(tWords)) + HReadBuffer(info, 0).surelyRead(atol(tWords[3])); return 0; case ERR_NOT_ONLINE: -- cgit v1.2.3