Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 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 | 9d11dbb33b6f |
comparison
equal
deleted
inserted
replaced
2988:9287c9465c50 | 2989:ba033cd8cd97 |
---|---|
2449 aim_bos_setprofile(odata->sess, odata->conn, inforeal, g->away ? NULL : "", gaim_caps); | 2449 aim_bos_setprofile(odata->sess, odata->conn, inforeal, g->away ? NULL : "", gaim_caps); |
2450 } | 2450 } |
2451 | 2451 |
2452 static void oscar_set_away(struct gaim_connection *gc, char *state, char *message) { | 2452 static void oscar_set_away(struct gaim_connection *gc, char *state, char *message) { |
2453 struct oscar_data *od = (struct oscar_data *)gc->proto_data; | 2453 struct oscar_data *od = (struct oscar_data *)gc->proto_data; |
2454 char away[4096]; | 2454 char away[1025]; |
2455 if (!od->icq) { | 2455 if (!od->icq) { |
2456 if (message) | 2456 if (message) |
2457 g_snprintf(away, sizeof(away), "%s", message); | 2457 g_snprintf(away, sizeof(away), "%s", message); |
2458 aim_bos_setprofile(od->sess, od->conn, NULL, message ? away : "", gaim_caps); | 2458 aim_bos_setprofile(od->sess, od->conn, NULL, message ? away : "", gaim_caps); |
2459 if (gc->away) | 2459 if (gc->away) |
2460 g_free (gc->away); | 2460 g_free (gc->away); |
2461 gc->away = NULL; | 2461 gc->away = NULL; |
2462 if (message) { | 2462 if (message) { |
2463 if (strlen(message) > sizeof(away)) | 2463 if (strlen(message) > sizeof(away)-1) |
2464 do_error_dialog("Maximum away length exceeded, truncating", | 2464 do_error_dialog("Maximum away length exceeded (1024), truncating", |
2465 "Info Too Long"); | 2465 "Info Too Long"); |
2466 gc->away = g_strdup (message); | 2466 gc->away = g_strdup (message); |
2467 } | 2467 } |
2468 return; | 2468 return; |
2469 } | 2469 } |