From 0939f2ebd25a0f9905d0c50276f796497a57fa93 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 24 Oct 2009 17:47:56 +0200 Subject: fix up potential printf's with unsafe format strings Signed-off-by: Denys Vlasenko --- networking/tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/tftp.c') diff --git a/networking/tftp.c b/networking/tftp.c index e4c31ee3c..9b08c147a 100644 --- a/networking/tftp.c +++ b/networking/tftp.c @@ -572,7 +572,7 @@ static int tftp_protocol( strcpy((char*)error_pkt_str, bb_msg_read_error); send_err_pkt: if (error_pkt_str[0]) - bb_error_msg((char*)error_pkt_str); + bb_error_msg("%s", (char*)error_pkt_str); error_pkt[1] = TFTP_ERROR; xsendto(socket_fd, error_pkt, 4 + 1 + strlen((char*)error_pkt_str), &peer_lsa->u.sa, peer_lsa->len); -- cgit v1.2.3