From 91fb8e3f9c1a952bb775f1bb31ea6559b00513de Mon Sep 17 00:00:00 2001 From: harti Date: Sat, 15 Nov 2003 15:26:35 +0000 Subject: 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. --- share/man/man4/ng_atm.4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/man/man4/ng_atm.4') diff --git a/share/man/man4/ng_atm.4 b/share/man/man4/ng_atm.4 index 0907115..c95d56f 100644 --- a/share/man/man4/ng_atm.4 +++ b/share/man/man4/ng_atm.4 @@ -232,7 +232,7 @@ all traffic types however): Initialize a VCC for sending and receiving. The argument is a structure: .Bd -literal struct ng_atm_cpcs_init { - char name[NG_HOOKLEN + 1]; + char name[NG_HOOKSIZ]; uint32_t flags; /* flags. (if_natmio.h) */ uint16_t vci; /* VCI to open */ uint16_t vpi; /* VPI to open */ @@ -276,7 +276,7 @@ type of traffic. Stop sending and receiving on the indicated hook. The argument is a .Bd -literal struct ng_atm_cpcs_term { - char name[NG_HOOKLEN + 1]; + char name[NG_HOOKSIZ]; }; .Ed .El -- cgit v1.1