diff --git a/libdnet-stripped/src/route-bsd.c b/libdnet-stripped/src/route-bsd.c index 7aa2eaf3e..9702422a3 100644 --- a/libdnet-stripped/src/route-bsd.c +++ b/libdnet-stripped/src/route-bsd.c @@ -168,7 +168,7 @@ route_msg(route_t *r, int type, char intf_name[INTF_NAME_LEN], struct addr *dst, errno = ESRCH; return (-1); } - strlcpy(intf_name, namebuf, sizeof(intf_name)); + strlcpy(intf_name, namebuf, INTF_NAME_LEN); } } return (0);