diff options
author | Peter Wemm <peter@FreeBSD.org> | 1997-03-31 16:43:16 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1997-03-31 16:43:16 +0000 |
commit | 4af9705ceb4d13a1e2e04accd8ab7060195b0e16 (patch) | |
tree | 4c230498adc6a415a74165033c58e8353b517448 /usr.bin/shar/shar.1 | |
parent | 0e1cf9a328882cd60028c0aba3f63aaae144661c (diff) | |
download | src-4af9705ceb4d13a1e2e04accd8ab7060195b0e16.tar.gz src-4af9705ceb4d13a1e2e04accd8ab7060195b0e16.zip |
Fix the mount_mfs case from the last cleanup. The code was (ab)using
it's internal malloc() implementation to try and avoid overstepping it's
resource limits (yuk!). Remain using libc's malloc(), but check the
resource limits right before trying to malloc the ramdisk space and leave
some spare memory for libc. In Andrey's words, the internal malloc
was "true evil".. Among it's sins is it's ability to allocate less memory
than asked for and still return success. stdio would just love that. :-)
Reviewed by: ache
Notes
Notes:
svn path=/head/; revision=24457
Diffstat (limited to 'usr.bin/shar/shar.1')
0 files changed, 0 insertions, 0 deletions