You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/cacti-spine/files/cacti-spine-0.8.8d-ping.patch

12 lines
260 B

--- a/ping.c
+++ b/ping.c
@@ -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) {
hostinfo = gethostbyname_r(hostname, &result, buf, len, &h_errno);