31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
$OpenBSD: patch-protocols_oscar_oscar_c,v 1.2 2004/10/21 14:48:51 naddy Exp $
|
|
--- protocols/oscar/oscar.c.orig Sat Sep 25 21:30:31 2004
|
|
+++ protocols/oscar/oscar.c Fri Oct 15 14:34:08 2004
|
|
@@ -297,7 +297,7 @@ static void oscar_callback(gpointer data
|
|
c->inpa = 0;
|
|
c->fd = -1;
|
|
aim_conn_kill(odata->sess, &conn);
|
|
- sprintf(buf, _("You have been disconnected from chat room %s."), c->name);
|
|
+ g_snprintf(buf, sizeof(buf), _("You have been disconnected from chat room %s."), c->name);
|
|
do_error_dialog(sess->aux_data, buf, _("Chat Error!"));
|
|
} else if (conn->type == AIM_CONN_TYPE_CHATNAV) {
|
|
if (odata->cnpa > 0)
|
|
@@ -1353,7 +1353,7 @@ static int gaim_parse_msgerr(aim_session
|
|
destn = va_arg(ap, char *);
|
|
va_end(ap);
|
|
|
|
- sprintf(buf, _("Your message to %s did not get sent: %s"), destn,
|
|
+ g_snprintf(buf, sizeof(buf), _("Your message to %s did not get sent: %s"), destn,
|
|
(reason < msgerrreasonlen) ? msgerrreason[reason] : _("Reason unknown"));
|
|
do_error_dialog(sess->aux_data, buf, _("Gaim - Error"));
|
|
|
|
@@ -1371,7 +1371,7 @@ static int gaim_parse_locerr(aim_session
|
|
destn = va_arg(ap, char *);
|
|
va_end(ap);
|
|
|
|
- sprintf(buf, _("User information for %s unavailable: %s"), destn,
|
|
+ g_snprintf(buf, sizeof(buf), _("User information for %s unavailable: %s"), destn,
|
|
(reason < msgerrreasonlen) ? msgerrreason[reason] : _("Reason unknown"));
|
|
do_error_dialog(sess->aux_data, buf, _("Gaim - Error"));
|
|
|