summaryrefslogtreecommitdiff
path: root/MySpace/server_con.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MySpace/server_con.cpp')
-rw-r--r--MySpace/server_con.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/MySpace/server_con.cpp b/MySpace/server_con.cpp
index 10e3197..0ef40e6 100644
--- a/MySpace/server_con.cpp
+++ b/MySpace/server_con.cpp
@@ -494,8 +494,8 @@ void __cdecl ServerThreadFunc(void*) {
DBWriteContactSettingByte(hContact, "CList", "Hidden", 1);
LookupUID(uid);
}
- char text[MAX_MESSAGE_SIZE];
- if(msg.get_string("msg", text, MAX_MESSAGE_SIZE)) {
+ char text[MAX_MESSAGE_SIZE + 1];
+ if(msg.get_string("msg", text, MAX_MESSAGE_SIZE + 1)) {
CallService(MS_PROTO_CONTACTISTYPING, (WPARAM)hContact, (LPARAM)0); // auto end typing
strip_tags(text);