Skip to content

Commit

Permalink
Use unsigned integer for DCC IP addr
Browse files Browse the repository at this point in the history
  • Loading branch information
yourealwaysbe authored and jelmer committed Aug 21, 2024
1 parent 684aca2 commit a3ca3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ int dccs_send_request(struct dcc_file_transfer *df, irc_user_t *iu, struct socka
if (saddr->ss_family == AF_INET) {
struct sockaddr_in *saddr_ipv4 = ( struct sockaddr_in *) saddr;

sprintf(ipaddr, "%d",
sprintf(ipaddr, "%u",
ntohl(saddr_ipv4->sin_addr.s_addr));
port = saddr_ipv4->sin_port;
} else {
Expand Down

0 comments on commit a3ca3dd

Please sign in to comment.