From: Rich Felker Date: Sat, 2 Feb 2013 07:07:38 +0000 (-0500) Subject: dynamically allocate storage for gethostby* buffers X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=a47ad3ebce8e20a5d72535996a0d0d5458241213;hp=a47ad3ebce8e20a5d72535996a0d0d5458241213 dynamically allocate storage for gethostby* buffers this change shaves ~1k off libc.so bss size, and also avoids hard errors in the case where the static buffer was not large enough to hold the result. this whole framework is really ugly and might should be replaced or at least heavily overhauled when some changes/factorizations are made to getaddrinfo internals in the future. ---