diff libpurple/protocols/oscar/oscar.c @ 18774:88ad571744b4

Looks like AOL increased the length of available messages from 60 characters to 251. Fixes #2379.
author Mark Doliner <mark@kingant.net>
date Thu, 02 Aug 2007 07:50:55 +0000
parents 84d53c3c699d
children 550ec02c9135
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Thu Aug 02 05:10:11 2007 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Thu Aug 02 07:50:55 2007 +0000
@@ -4523,9 +4523,9 @@
 		{
 			status_text = purple_markup_strip_html(status_html);
 			/* If the status_text is longer than 60 character then truncate it */
-			if (strlen(status_text) > 60)
+			if (strlen(status_text) > MAXAVAILMSGLEN)
 			{
-				char *tmp = g_utf8_find_prev_char(status_text, &status_text[58]);
+				char *tmp = g_utf8_find_prev_char(status_text, &status_text[MAXAVAILMSGLEN - 2]);
 				strcpy(tmp, "...");
 			}
 		}