Change parse_string() to take an optional integer pointer that can
authorkrw <krw@openbsd.org>
Mon, 3 Apr 2017 19:59:39 +0000 (19:59 +0000)
committerkrw <krw@openbsd.org>
Mon, 3 Apr 2017 19:59:39 +0000 (19:59 +0000)
commit3c31bff5bb3a2a84054cd10c54cd48ee4d530a8b
tree3ca6ebd9eff14b11ab9865dd7d24c00a831b90e8
parent4229d575b34e5024b34c29ae4b8851aecc64b0d8
Change parse_string() to take an optional integer pointer that can
be used to return the final size of the parsed (i.e. un-vis'ed)
string. Use same, plus memcpy() to ensure entire final string is
copied to intended destination even if there are embedded NULs.
sbin/dhclient/clparse.c
sbin/dhclient/dhcpd.h
sbin/dhclient/parse.c