summaryrefslogtreecommitdiff
path: root/usr.sbin/route6d
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/route6d
parent04cc746620956f96339007ae227214f44c1bf2e9 (diff)
avoid hardcoding 12; use NI_MAXSERV. deraadt ok
Diffstat (limited to 'usr.sbin/route6d')
-rw-r--r--usr.sbin/route6d/route6d.c6
1 files changed, 3 insertions, 3 deletions
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;