From 92916d3d9d67abf583b875486d54b1c20ad5883f Mon Sep 17 00:00:00 2001 From: sje Date: Mon, 9 Jul 2007 16:27:12 +0000 Subject: fix for 'add permanently to list' functions limit max message length 'correctly' (thx Jeff) git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@262 4f64403b-2f21-0410-a795-97e2b3489a10 --- MySpace/server_con.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MySpace/server_con.cpp') 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); -- cgit v1.2.3