diff options
author | harti <harti@FreeBSD.org> | 2003-11-12 13:04:44 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-11-12 13:04:44 +0000 |
commit | 173237aab3267754048a84a6b70fb2a52e6e4dc3 (patch) | |
tree | 3c96a7aed7e112aeb565d2a4875a10179302ed81 /usr.sbin/ngctl/msg.c | |
parent | be4f5f73c6576bbb905784b339eef001faaf8168 (diff) | |
download | FreeBSD-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/msg.c')
-rw-r--r-- | usr.sbin/ngctl/msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ngctl/msg.c b/usr.sbin/ngctl/msg.c index 4ae5171..50843ae 100644 --- a/usr.sbin/ngctl/msg.c +++ b/usr.sbin/ngctl/msg.c @@ -112,7 +112,7 @@ MsgRead() u_char buf[2 * sizeof(struct ng_mesg) + BUF_SIZE]; struct ng_mesg *const m = (struct ng_mesg *)buf; struct ng_mesg *const ascii = (struct ng_mesg *)m->data; - char path[NG_PATHLEN+1]; + char path[NG_PATHSIZ]; /* Get incoming message (in binary form) */ if (NgRecvMsg(csock, m, sizeof(buf), path) < 0) { |