chiark / gitweb /
Bugfix for "permits nothing"; ATXTLEN buffer overflow fixed.
authorian <ian>
Sat, 25 Sep 1999 10:12:58 +0000 (10:12 +0000)
committerian <ian>
Sat, 25 Sep 1999 10:12:58 +0000 (10:12 +0000)
ipif/service.c

index 18322d4cc71c4c98218aa7b0e6516cdaf7be7afb..d2591ba9e1f648148f0edaa770fe690cdddf9659 100644 (file)
@@ -49,7 +49,7 @@
 
 #define NARGS 4
 #define MAXEXROUTES 5
-#define ATXTLEN 12
+#define ATXTLEN 16
 
 static const unsigned long gidmaxval= (unsigned long)((gid_t)-2);
 static const char *const protos_ok[]= { "slip", "cslip", "adaptive", 0 };
@@ -294,7 +294,7 @@ static void permit(unsigned long pprefix, unsigned long pmask) {
     }
   }
   if (!proto) {
-    if (!any) fputs(" nothing!",stderr);
+    if (!any) fputs(" nothing",stdout);
     putchar('\n');
   }
 }