use NI_MAX*. 10 is not enough for port number. sync w/kame

This commit is contained in:
itojun 2003-04-15 07:32:06 +00:00
parent 670e872d62
commit 781846fcdb
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: setkey.c,v 1.5 2001/09/07 04:12:10 itojun Exp $ */
/* $NetBSD: setkey.c,v 1.6 2003/04/15 07:32:06 itojun Exp $ */
/* $KAME: setkey.c,v 1.25 2001/08/17 06:33:58 itojun Exp $ */
/*
@ -480,7 +480,7 @@ shortdump(msg)
struct sadb_msg *msg;
{
caddr_t mhp[SADB_EXT_MAX + 1];
char buf[1024], pbuf[10];
char buf[NI_MAXHOST], pbuf[NI_MAXSERV];
struct sadb_sa *sa;
struct sadb_address *saddr;
struct sadb_lifetime *lts, *lth, *ltc;