net-analyzer/cacti-spine: Update patch
authorJeroen Roovers <jer@gentoo.org>
Sat, 14 Dec 2019 09:47:27 +0000 (10:47 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sat, 14 Dec 2019 09:48:21 +0000 (10:48 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-ping.patch

index 0d94674ce5a3105850dd27c29da51f6bd877813c..55dc8754c8db2a6cdba916faf4809affaeccb49b 100644 (file)
@@ -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);