summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_errors.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-15 12:58:09 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-15 12:58:09 +0000
commit714b5dfb8f159c8d54ef42c905c3c85f4b4e7962 (patch)
tree0b165971e9bdb09c4599203193ed5481b81eba13 /protocols/MSN/src/msn_errors.cpp
parent4336962bfb77acdebcb167571a8ce9e1d6c26778 (diff)
- 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
Diffstat (limited to 'protocols/MSN/src/msn_errors.cpp')
-rw-r--r--protocols/MSN/src/msn_errors.cpp6
1 files changed, 3 insertions, 3 deletions
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: