diff options
| author | Warner Losh <imp@FreeBSD.org> | 2009-06-09 07:14:32 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2009-06-09 07:14:32 +0000 |
| commit | 2b9a8a330fa9729f18534a8a0b5a42d39fd24b61 (patch) | |
| tree | 224a1b7f81f28364ffa073b337b1749a56d3d6e8 /sys/dev/cx | |
| parent | 0941c782f9468917c982d484923475eef65c3d97 (diff) | |
Notes
Diffstat (limited to 'sys/dev/cx')
| -rw-r--r-- | sys/dev/cx/if_cx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c index ad051677e0bf..c0d354ae2d45 100644 --- a/sys/dev/cx/if_cx.c +++ b/sys/dev/cx/if_cx.c @@ -137,7 +137,7 @@ typedef struct _drv_t { int cd; int running; #ifdef NETGRAPH - char nodename [NG_NODELEN+1]; + char nodename [NG_NODESIZ]; hook_p hook; hook_p debug_hook; node_p node; @@ -2399,7 +2399,7 @@ static int ng_cx_rcvmsg (node_p node, item_p item, hook_p lasthook) l += print_chan (s + l, d->chan); l += print_stats (s + l, d->chan, 1); l += print_modems (s + l, d->chan, 1); - strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRLEN); + strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRSIZ); } break; } |
