diff options
author | hrs <hrs@FreeBSD.org> | 2015-10-06 08:43:48 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2015-10-06 08:43:48 +0000 |
commit | a9bfaebd85834b2174fc8556e888c5dc381ace2f (patch) | |
tree | 4ad6c2afa957672984edeb0a09d74d60564bbab3 /lib/libc/stdlib/getopt.c | |
parent | 9fffe2524dd695053a4ad0b6fa7428f3023b33e6 (diff) | |
download | FreeBSD-src-a9bfaebd85834b2174fc8556e888c5dc381ace2f.zip FreeBSD-src-a9bfaebd85834b2174fc8556e888c5dc381ace2f.tar.gz |
Reallocate a maxlen-long buffer only when the current maxlen is
shorter than the required length. Note that it rarely happens
because maxlen is almost always 128 which covers struct sockaddr_storage.
Diffstat (limited to 'lib/libc/stdlib/getopt.c')
0 files changed, 0 insertions, 0 deletions