Re: bglibs-1.022/str/alloc.c comment
Bruce Guenter <[email protected]>
| Newsgroups | gmane.comp.sysutils.bgware |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jun 21, 2005 at 05:38:19PM +0200, Uffe Jakobsen wrote: > Is there any special reason why you don't use realloc() in str_alloc() - > and use malloc/memcpy/free instead ? Hrm, nope. I think at the time I may have been referencing some documentation (including DJB's libraries) that hinted at some unreliability in realloc. Having said that, that would be a pretty fundamental problem in any libc, and using realloc really does make more sense (especially if the underlying library uses mmap for large allocations). -- Bruce Guenter <[email protected]> http://em.ca/~bruceg/ http://untroubled.org/ OpenPGP key: 699980E8 / D0B7 C8DD 365D A395 29DA 2E2A E96F B2DC 6999 80E8
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCuHPp6W+y3GmZgOgRAldSAKCBTshKnVGcSNeJaKUCxXI9xGptqACgm3se 86o9FB7wB8dyosSpsr0XNW8= =vlqT -----END PGP SIGNATURE-----