$OpenBSD: patch-protocols_oscar_oscar_c,v 1.1 2004/06/20 16:27:49 naddy Exp $
--- protocols/oscar/oscar.c.orig	2004-05-19 05:30:36.000000000 +1000
+++ protocols/oscar/oscar.c	2004-06-09 21:19:12.000000000 +1000
@@ -304,7 +304,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(buf, _("Chat Error!"));
 				} else if (conn->type == AIM_CONN_TYPE_CHATNAV) {
 					if (odata->cnpa > 0)
@@ -1428,7 +1428,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(buf, _("Gaim - Error"));
 
@@ -1446,7 +1446,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(buf, _("Gaim - Error"));
 
