summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2017-03-15 16:45:25 +0000
committermillert <millert@openbsd.org>2017-03-15 16:45:25 +0000
commitda78060b6ceed7a6d97d385cef75db79af670c78 (patch)
tree97ac6dd0673c55cfc34e210bdd8757df8393f568 /lib/libutil
parentuse recallocarray to resize buffer - ensures that detritus from previous (diff)
downloadwireguard-openbsd-da78060b6ceed7a6d97d385cef75db79af670c78.tar.xz
wireguard-openbsd-da78060b6ceed7a6d97d385cef75db79af670c78.zip
There's no need to realloc() a chunk of memory when you don't care
about the old contents, we don't want have to memcpy() the old contents to the new chunk only to throw it away. While here, use asprintf() to simplify things. OK deraadt@
Diffstat (limited to 'lib/libutil')
0 files changed, 0 insertions, 0 deletions