28fb5d9a37
rare overflow). Optimize loop slightly. Don't exit if realloc can't shrink a buffer (just continue and use the larger buffer). Obtained from: OpenBSD MFC after: 2 weeks