[Commits] [SCM] claws branch, master, updated. 3.18.0-9-g1dc3676a4

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


The branch, master has been updated
       via  1dc3676a4dec67437a5dd09dbf60bfb6c0ce79cc (commit)
      from  e8a7ed2854dd0f2459ed79dc662298071ec10c32 (commit)

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


- Log -----------------------------------------------------------------
commit 1dc3676a4dec67437a5dd09dbf60bfb6c0ce79cc
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