mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
fix up potential printf's with unsafe format strings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
4b8b37f981
commit
0939f2ebd2
@ -41,7 +41,7 @@ static unsigned sum_file(const char *file, unsigned type)
|
|||||||
if (!bytes_read && !r)
|
if (!bytes_read && !r)
|
||||||
/* no error */
|
/* no error */
|
||||||
break;
|
break;
|
||||||
bb_perror_msg(file);
|
bb_simple_perror_msg(file);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -572,7 +572,7 @@ static int tftp_protocol(
|
|||||||
strcpy((char*)error_pkt_str, bb_msg_read_error);
|
strcpy((char*)error_pkt_str, bb_msg_read_error);
|
||||||
send_err_pkt:
|
send_err_pkt:
|
||||||
if (error_pkt_str[0])
|
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;
|
error_pkt[1] = TFTP_ERROR;
|
||||||
xsendto(socket_fd, error_pkt, 4 + 1 + strlen((char*)error_pkt_str),
|
xsendto(socket_fd, error_pkt, 4 + 1 + strlen((char*)error_pkt_str),
|
||||||
&peer_lsa->u.sa, peer_lsa->len);
|
&peer_lsa->u.sa, peer_lsa->len);
|
||||||
|
Loading…
Reference in New Issue
Block a user