# HG changeset patch
# User Adam Fritzler <mid@auk.cx>
# Date 1014512359 0
# Node ID ba033cd8cd972ae84a03f32eeb3c5139b3b73a91
# Parent  9287c9465c507c6559d4665e8fb787dd980e11da
[gaim-migrate @ 3002]
But I am me. (Whoops.)

committer: Tailor Script <tailor@pidgin.im>

diff -r 9287c9465c50 -r ba033cd8cd97 src/protocols/oscar/oscar.c
--- 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);
 		}