]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Fix the code in sbuf_need() to double the allocation size until
authorRobert Drehmel <robert@FreeBSD.org>
Sun, 7 Jul 2002 15:24:36 +0000 (15:24 +0000)
committerRobert Drehmel <robert@FreeBSD.org>
Sun, 7 Jul 2002 15:24:36 +0000 (15:24 +0000)
commite1e9c75605c75deac84cc23f4e0ce96533f5bb6c
tree2f16c6c48b7317a1905636085b0846a5f997a8fe
parent325167c3a5452b0334c5ecc93b95a28ca1ddb5c6
 - Fix the code in sbuf_need() to double the allocation size until
   the new content size fits into the sbuf, instead of assuming
   that allocating twice the old size is enough.
 - Use memmove(3) rather than strcpy(3) to copy overlapping
   strings.

PR: bin/39930
usr.bin/makewhatis/makewhatis.c