summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ngctl/main.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-11-12 13:04:44 +0000
committerharti <harti@FreeBSD.org>2003-11-12 13:04:44 +0000
commit173237aab3267754048a84a6b70fb2a52e6e4dc3 (patch)
tree3c96a7aed7e112aeb565d2a4875a10179302ed81 /usr.sbin/ngctl/main.c
parentbe4f5f73c6576bbb905784b339eef001faaf8168 (diff)
downloadFreeBSD-src-173237aab3267754048a84a6b70fb2a52e6e4dc3.zip
FreeBSD-src-173237aab3267754048a84a6b70fb2a52e6e4dc3.tar.gz
Get rid of the old constants which did not include the trailing NUL
and use the new constants which do.
Diffstat (limited to 'usr.sbin/ngctl/main.c')
-rw-r--r--usr.sbin/ngctl/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ngctl/main.c b/usr.sbin/ngctl/main.c
index 109ac17..06010cf 100644
--- a/usr.sbin/ngctl/main.c
+++ b/usr.sbin/ngctl/main.c
@@ -110,7 +110,7 @@ int csock, dsock;
int
main(int ac, char *av[])
{
- char name[NG_NODELEN + 1];
+ char name[NG_NODESIZ];
int interactive = isatty(0) && isatty(1);
FILE *fp = NULL;
int ch, rtn = 0;
@@ -236,7 +236,7 @@ DoInteractive(void)
/* Display any incoming data packet */
if (FD_ISSET(dsock, &rfds)) {
u_char buf[8192];
- char hook[NG_HOOKLEN + 1];
+ char hook[NG_HOOKSIZ];
int rl;
/* Read packet from socket */
OpenPOWER on IntegriCloud