diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-24 17:47:56 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-24 17:47:56 +0200 |
commit | 0939f2ebd25a0f9905d0c50276f796497a57fa93 (patch) | |
tree | 7452ec08e7fde61f26353ab7ca77401743dfb2ad /networking/tftp.c | |
parent | 4b8b37f9815892a1c221c0ca9f8eec623ab71866 (diff) | |
download | busybox-w32-0939f2ebd25a0f9905d0c50276f796497a57fa93.tar.gz busybox-w32-0939f2ebd25a0f9905d0c50276f796497a57fa93.tar.bz2 busybox-w32-0939f2ebd25a0f9905d0c50276f796497a57fa93.zip |
fix up potential printf's with unsafe format strings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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( | |||
572 | strcpy((char*)error_pkt_str, bb_msg_read_error); | 572 | strcpy((char*)error_pkt_str, bb_msg_read_error); |
573 | send_err_pkt: | 573 | send_err_pkt: |
574 | if (error_pkt_str[0]) | 574 | if (error_pkt_str[0]) |
575 | bb_error_msg((char*)error_pkt_str); | 575 | bb_error_msg("%s", (char*)error_pkt_str); |
576 | error_pkt[1] = TFTP_ERROR; | 576 | error_pkt[1] = TFTP_ERROR; |
577 | xsendto(socket_fd, error_pkt, 4 + 1 + strlen((char*)error_pkt_str), | 577 | xsendto(socket_fd, error_pkt, 4 + 1 + strlen((char*)error_pkt_str), |
578 | &peer_lsa->u.sa, peer_lsa->len); | 578 | &peer_lsa->u.sa, peer_lsa->len); |