net-tools-1.60-23 hostname
PATCH 1/1 net-tools-1.60-23 hostname
Hi,
When compiling the following source http://packages.debian.org/sid/net-tools
version 1.60 orig plus -23 patch
I found a few bugs.
Here follows three patches.
73 de Bernard, f6bvp
hostname.c +4 -0
@@ -31,6 +31,7 @@* your option) any later version. */ #include <stdio.h> +#include <stdlib.h> #include <unistd.h> #include <getopt.h> #include <string.h>
@@ -98,6 +99,7 @@fprintf (stderr,_ ("%s: name too long\n" ), program_name);break ;default : +break ; }exit (1 ); };
@@ -117,6 +119,7 @@fprintf (stderr,_ ("%s: name too long\n" ), program_name);break ;default : +break ; }exit (1 ); };
@@ -174,6 +177,7 @@printf ("%s\n" , hp->h_name);break ;default : +break ; } }