From 95c2469521282b6359efed1ca4edb959c7dcbbd7 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Sat, 14 Dec 2019 10:47:27 +0100 Subject: [PATCH] net-analyzer/cacti-spine: Update patch Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Jeroen Roovers --- .../cacti-spine/files/cacti-spine-0.8.8d-ping.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.26.2