From: Jeroen Roovers Date: Sat, 14 Dec 2019 09:47:27 +0000 (+0100) Subject: net-analyzer/cacti-spine: Update patch X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=95c2469521282b6359efed1ca4edb959c7dcbbd7;p=gentoo.git net-analyzer/cacti-spine: Update patch Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Jeroen Roovers --- diff --git a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-ping.patch b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-ping.patch index 0d94674ce5a3..55dc8754c8db 100644 --- a/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-ping.patch +++ b/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-ping.patch @@ -1,11 +1,11 @@ --- a/ping.c +++ b/ping.c -@@ -813,7 +813,7 @@ - int rv; +@@ -913,7 +913,7 @@ + struct hostent result; buf = malloc(len*sizeof(char)); - memset(buf, 0, sizeof(buf)); + memset(buf, 0, len*sizeof(char)); while (1) { - rv = gethostbyname_r(hostname, &result_buf, buf, len, + hostinfo = gethostbyname_r(hostname, &result, buf, len, &h_errno);