changeset 2989:ba033cd8cd97

[gaim-migrate @ 3002] But I am me. (Whoops.) committer: Tailor Script <tailor@pidgin.im>
author Adam Fritzler <mid@auk.cx>
date Sun, 24 Feb 2002 00:59:19 +0000
parents 9287c9465c50
children 06f2bae259a0
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Feb 24 00:54:23 2002 +0000
+++ b/src/protocols/oscar/oscar.c	Sun Feb 24 00:59:19 2002 +0000
@@ -2451,7 +2451,7 @@
 
 static void oscar_set_away(struct gaim_connection *gc, char *state, char *message) {
 	struct oscar_data *od = (struct oscar_data *)gc->proto_data;
-	char away[4096];
+	char away[1025];
 	if (!od->icq) {
 		if (message)
 			g_snprintf(away, sizeof(away), "%s", message);
@@ -2460,8 +2460,8 @@
 			g_free (gc->away);
 		gc->away = NULL;
 		if (message) {
-			if (strlen(message) > sizeof(away))
-				do_error_dialog("Maximum away length exceeded, truncating",
+			if (strlen(message) > sizeof(away)-1)
+				do_error_dialog("Maximum away length exceeded (1024), truncating",
 						"Info Too Long");
 			gc->away = g_strdup (message);
 		}