[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2560: fping doubles hosts



Package: netstd
Revision: 1.25-1

Using fping with a file that contains blank lines you'll get some
hosts double. This is a result of a missing bzero() in the code. I
append a quick patch to fix this.

--- fping.c.orig	Sun Mar 17 20:58:02 1996
+++ fping.c	Sun Mar 17 21:00:09 1996
@@ -385,6 +385,7 @@
          }
          if (!ping_file) errno_crash_and_burn("fopen");
          while(fgets(line,132,ping_file)) {
+	   bzero (host, strlen (host));
            sscanf(line,"%s",host);
               if ((!*host) || (host[0]=='#'))  /* magic to avoid comments */
                 continue;


Best regards,

	Joey

--
  / Martin Schulze  *  joey@infodrom.north.de  *  26129 Oldenburg /
 /                                     http://home.pages.de/~joey/
/                     There are lies, statistics and benchmarks /



Reply to: