talons

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

commit 1080158b686c5bfbe59d5ac808722f4d200969bd
parent c5bd1f169ff1cafc10ffe8bf1b0dc1e26bbf4d4b
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");