summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-01-26 23:41:48 +0000
committerkrw <krw@openbsd.org>2016-01-26 23:41:48 +0000
commit8799a2d3ee7d3e0bcd7cd963ce1816b6e8a1734b (patch)
treefa3ecf519f3c62c5bd8dfc6aa4f1323bfe056088 /lib/libc/stdlib/reallocarray.c
parentspacing (diff)
downloadwireguard-openbsd-8799a2d3ee7d3e0bcd7cd963ce1816b6e8a1734b.tar.xz
wireguard-openbsd-8799a2d3ee7d3e0bcd7cd963ce1816b6e8a1734b.zip
Rework and simplify string argument parsing. All string arguments are at
most DPISTRLEN (32) characters so there is no need for fancy dynamic growing strings. Use a DPISTRLEN long buffer and bail if it fills up. Rename get_string() to get_dpistr() and get_string_argument() to get_dpstr_argument() to emphasize they will return strings that fit in DPISTRLEN. Rework & simplify a pair of their consumers - do_rename_partition() and do_change_type() - to be more obviously identitical to each other bar the displayed verbiage.
Diffstat (limited to 'lib/libc/stdlib/reallocarray.c')
0 files changed, 0 insertions, 0 deletions