[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-13-g1080158b6

mones at claws-mail.org mones at claws-mail.org
Mon Jul 19 19:02:30 CEST 2021


The branch, gtk3 has been updated
       via  1080158b686c5bfbe59d5ac808722f4d200969bd (commit)
      from  c5bd1f169ff1cafc10ffe8bf1b0dc1e26bbf4d4b (commit)

Summary of changes:
 src/plugins/clamd/libclamd/clamd-plugin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 1080158b686c5bfbe59d5ac808722f4d200969bd
Author: Ricardo Mones <ricardo at mones.org>
Date:   Mon Jul 19 19:00:26 2021 +0200

    Replace last instance of deprecated function bcopy

diff --git a/src/plugins/clamd/libclamd/clamd-plugin.c b/src/plugins/clamd/libclamd/clamd-plugin.c
index 95fa8f3f4..ecb702503 100644
--- 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");

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list