Update of /cvsroot/gaim/gaim/src/protocols/oscar
In directory usw-pr-cvs1:/tmp/cvs-serv10052
Modified Files:
oscar.c
Log Message:
But I am me. (Whoops.)
Index: oscar.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/oscar.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- oscar.c 24 Feb 2002 00:54:23 -0000 1.98
+++ oscar.c 24 Feb 2002 00:59:19 -0000 1.99
@@ -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);
}
|