aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/sum.c2
-rw-r--r--networking/tftp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/sum.c b/coreutils/sum.c
index 60f3b3007..35e89a6a3 100644
--- a/coreutils/sum.c
+++ b/coreutils/sum.c
@@ -41,7 +41,7 @@ static unsigned sum_file(const char *file, unsigned type)
41 if (!bytes_read && !r) 41 if (!bytes_read && !r)
42 /* no error */ 42 /* no error */
43 break; 43 break;
44 bb_perror_msg(file); 44 bb_simple_perror_msg(file);
45 return 0; 45 return 0;
46 } 46 }
47 47
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);