talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 1dc3676a4dec67437a5dd09dbf60bfb6c0ce79cc
parent e8a7ed2854dd0f2459ed79dc662298071ec10c32
Author: Ricardo Mones <ricardo@mones.org>
Date:   Mon, 19 Jul 2021 19:00:26 +0200

Replace last instance of deprecated function bcopy

Diffstat:
Msrc/plugins/clamd/libclamd/clamd-plugin.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/clamd/libclamd/clamd-plugin.c b/src/plugins/clamd/libclamd/clamd-plugin.c @@ -331,7 +331,7 @@ static int create_socket() { } debug_print("IP socket host: %s:%d\n", Socket->socket.host, Socket->socket.port); - bcopy((void *)hp->h_addr, (void *)&addr_i.sin_addr, hp->h_length); + memcpy((void *)&addr_i.sin_addr, (void *)hp->h_addr, hp->h_length); new_sock = socket(PF_INET, SOCK_STREAM, 0); if (new_sock < 0) { perror("create socket");