]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/misc-progs/rebuildhosts.c
Merge branch 'master' into install-raid
[ipfire-2.x.git] / src / misc-progs / rebuildhosts.c
index 08408874481eb935992bcc22131235e6be695aa2..21c523600c75b5223106d6aeb284db40f30e9531 100644 (file)
@@ -19,7 +19,9 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <signal.h>
+
 #include "setuid.h"
+#include "netutil.h"
 
 FILE *fd = NULL;
 FILE *hosts = NULL;
@@ -41,11 +43,11 @@ void exithandler(void)
 int main(int argc, char *argv[])
 {
        int fdpid; 
-       char hostname[STRING_SIZE];
+       char hostname[STRING_SIZE] = "";
        char domainname[STRING_SIZE] = "";
        char gateway[STRING_SIZE] = "";
        char buffer[STRING_SIZE];
-       char address[STRING_SIZE];
+       char address[STRING_SIZE] = "";
        char *active, *ip, *host, *domain;
        int pid;