diff options
author | harti <harti@FreeBSD.org> | 2003-11-15 15:26:35 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-11-15 15:26:35 +0000 |
commit | 91fb8e3f9c1a952bb775f1bb31ea6559b00513de (patch) | |
tree | 201c2a255c93bc25015b4e71f409755772c4c70e /libexec | |
parent | 893ed3a2447f87376575889b23f244a2d8f65be6 (diff) | |
download | FreeBSD-src-91fb8e3f9c1a952bb775f1bb31ea6559b00513de.zip FreeBSD-src-91fb8e3f9c1a952bb775f1bb31ea6559b00513de.tar.gz |
Replace all uses of the old netgraph constants NG_*LEN by the new
constants NG_*SIZ that include the trailing NUL byte. This change
is mostly mechanical except for the replacement of a couple of snprintf()
and sprintf() calls with strlcpy.
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/pppoed/pppoed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/pppoed/pppoed.c b/libexec/pppoed/pppoed.c index 7d78324..3fdac99 100644 --- a/libexec/pppoed/pppoed.c +++ b/libexec/pppoed/pppoed.c @@ -497,7 +497,7 @@ nglogx(const char *fmt, ...) int main(int argc, char *argv[]) { - char hostname[MAXHOSTNAMELEN], *exec, rhook[NG_HOOKLEN + 1]; + char hostname[MAXHOSTNAMELEN], *exec, rhook[NG_HOOKSIZ]; unsigned char response[1024]; const char *label, *prog, *provider, *acname; struct ngm_connect ngc; |