diff --git a/src/bip.c b/src/bip.c index 1eed76e..050004b 100644 --- a/src/bip.c +++ b/src/bip.c @@ -1379,7 +1379,7 @@ void adm_print_connection(struct link_client *ic, struct link *lnk, noroom: /* that means the line is larger that RET_STR_LEN. We're not likely to even read such a long line */ buf[RET_STR_LEN] = 0; - bip_notify(ic, buf); + bip_notify(ic, "%s", buf); // TODO: on_connect_send @@ -1396,13 +1396,13 @@ noroom: /* that means the line is larger that RET_STR_LEN. We're not likely to (ch->backlog ? "" : "`")); if (t_written > LINE_SIZE_LIM) { buf[RET_STR_LEN] = 0; - bip_notify(ic, buf); + bip_notify(ic, "%s", buf); t_written = 0; } } noroomchan: buf[RET_STR_LEN] = 0; - bip_notify(ic, buf); + bip_notify(ic, "%s", buf); t_written = snprintf(buf, RET_STR_LEN, " Status: "); if (t_written >= RET_STR_LEN) @@ -1462,7 +1462,7 @@ noroomchan: } noroomstatus: buf[RET_STR_LEN] = 0; - bip_notify(ic, buf); + bip_notify(ic, "%s", buf); } void adm_list_all_links(struct link_client *ic) @@ -1521,7 +1521,7 @@ void adm_info_user(struct link_client *ic, const char *name) noroom: buf[RET_STR_LEN] = 0; - bip_notify(ic, buf); + bip_notify(ic, "%s", buf); t_written = 0; #ifdef HAVE_LIBSSL @@ -1590,13 +1590,13 @@ void adm_list_users(struct link_client *ic) goto noroom; if (t_written > LINE_SIZE_LIM) { buf[RET_STR_LEN] = 0; - bip_notify(ic, buf); + bip_notify(ic, "%s", buf); t_written = 0; } } noroom: buf[RET_STR_LEN] = 0; - bip_notify(ic, buf); + bip_notify(ic, "%s", buf); } bip_notify(ic, "-- End of User list"); } @@ -1640,13 +1640,13 @@ void adm_list_networks(struct link_client *ic) goto noroom; if (t_written > LINE_SIZE_LIM) { buf[RET_STR_LEN] = 0; - bip_notify(ic, buf); + bip_notify(ic, "%s", buf); t_written = 0; } } noroom: buf[RET_STR_LEN] = 0; - bip_notify(ic, buf); + bip_notify(ic, "%s", buf); } bip_notify(ic, "-- End of Network list"); } diff --git a/src/irc.c b/src/irc.c index 1480e3f..870acbf 100644 --- a/src/irc.c +++ b/src/irc.c @@ -2469,7 +2469,7 @@ void irc_main(bip_t *bip) char *l; while ((l = list_remove_first(&bip->errors))) - bip_notify(bip->reloading_client, l); + bip_notify(bip->reloading_client, "%s", l); bip->reloading_client = NULL; }