diff options
author | 2017-03-15 16:45:25 +0000 | |
---|---|---|
committer | 2017-03-15 16:45:25 +0000 | |
commit | da78060b6ceed7a6d97d385cef75db79af670c78 (patch) | |
tree | 97ac6dd0673c55cfc34e210bdd8757df8393f568 /lib/libutil | |
parent | use recallocarray to resize buffer - ensures that detritus from previous (diff) | |
download | wireguard-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