diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-09 16:27:12 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-09 16:27:12 +0000 |
commit | 92916d3d9d67abf583b875486d54b1c20ad5883f (patch) | |
tree | 02bb5eb09274a73717dffac3120864eb9e3ea3ac /MySpace/server_con.cpp | |
parent | 68368a3478231511990298a666289c920319206e (diff) |
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
Diffstat (limited to 'MySpace/server_con.cpp')
-rw-r--r-- | MySpace/server_con.cpp | 4 |
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);
|