summaryrefslogtreecommitdiff
path: root/sys/dev/cp
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2009-06-09 07:14:32 +0000
committerWarner Losh <imp@FreeBSD.org>2009-06-09 07:14:32 +0000
commit2b9a8a330fa9729f18534a8a0b5a42d39fd24b61 (patch)
tree224a1b7f81f28364ffa073b337b1749a56d3d6e8 /sys/dev/cp
parent0941c782f9468917c982d484923475eef65c3d97 (diff)
Notes
Diffstat (limited to 'sys/dev/cp')
-rw-r--r--sys/dev/cp/if_cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cp/if_cp.c b/sys/dev/cp/if_cp.c
index b72f827fd0cb..75e329738aa3 100644
--- a/sys/dev/cp/if_cp.c
+++ b/sys/dev/cp/if_cp.c
@@ -111,7 +111,7 @@ typedef struct _drv_t {
cp_board_t *board;
cp_dma_mem_t dmamem;
#ifdef NETGRAPH
- char nodename [NG_NODELEN+1];
+ char nodename [NG_NODESIZE];
hook_p hook;
hook_p debug_hook;
node_p node;
@@ -2121,7 +2121,7 @@ static int ng_cp_rcvmsg (node_p node, item_p item, hook_p lasthook)
l += print_e1_stats (s + l, d->chan);
} else
l += sprintf (s + l, "Error: node not connect to channel");
- strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRLEN);
+ strncpy ((resp)->header.cmdstr, "status", NG_CMDSTRSIZ);
}
break;
}