summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-04-15 07:22:47 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-04-15 07:22:47 +0000
commit8b9f997ca0d6a7c6f9edf852b3b30b8fcb39ba5a (patch)
tree3e8171d233e6143c3cbf2be62538332be779380b /usr.sbin
parent04cc746620956f96339007ae227214f44c1bf2e9 (diff)
avoid hardcoding 12; use NI_MAXSERV. deraadt ok
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rip6query/rip6query.c4
-rw-r--r--usr.sbin/route6d/route6d.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/rip6query/rip6query.c b/usr.sbin/rip6query/rip6query.c
index a8d512a9b7d..53f34bff0b9 100644
--- a/usr.sbin/rip6query/rip6query.c
+++ b/usr.sbin/rip6query/rip6query.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rip6query.c,v 1.9 2003/04/14 22:24:58 pvalchev Exp $ */
+/* $OpenBSD: rip6query.c,v 1.10 2003/04/15 07:22:45 itojun Exp $ */
/* $KAME: rip6query.c,v 1.17 2002/09/08 01:35:17 itojun Exp $ */
/*
@@ -81,7 +81,7 @@ main(argc, argv)
int c;
int ifidx = -1;
int error;
- char pbuf[12];
+ char pbuf[NI_MAXSERV];
struct addrinfo hints, *res;
while ((c = getopt(argc, argv, "I:w:")) != -1) {
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index acfa128e260..42ddd54c3f5 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route6d.c,v 1.34 2003/04/14 22:24:58 pvalchev Exp $ */
+/* $OpenBSD: route6d.c,v 1.35 2003/04/15 07:22:46 itojun Exp $ */
/* $KAME: route6d.c,v 1.94 2002/10/26 20:08:55 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#if 0
-static char _rcsid[] = "$OpenBSD: route6d.c,v 1.34 2003/04/14 22:24:58 pvalchev Exp $";
+static char _rcsid[] = "$OpenBSD: route6d.c,v 1.35 2003/04/15 07:22:46 itojun Exp $";
#endif
#include <stdio.h>
@@ -587,7 +587,7 @@ init()
int i, error;
const int int0 = 0, int1 = 1, int255 = 255;
struct addrinfo hints, *res;
- char port[12];
+ char port[NI_MAXSERV];
ifc = (struct ifc *)NULL;
nifc = 0;