MFS r239854 (including MFC r239601, r239602, r239621):
Remember that I'm using length-defined strings in parameters:
Don't include the null terminator when recomputing the parameter
length when stripping the netmask from IP addresses. This was
causing later addresses in a comma-separated string to disappear.
Use memcpy instead of strcpy. This could just cause Bad Things.
Add a null byte when comma-combining array parameters.
Pre-separate IP addresses passed on the command line, so they can be
properly parsed for interface prefixes and netmask suffixes. This was
already done for the old-style (fixed) command line, but missed for
the new-style.
PR: 170832
Approved by: re (kib)
git-svn-id: svn://svn.freebsd.org/base/releng/9.1@239871
ccf9f872-aa2e-dd11-9fc8-
001c23d0bc1f