Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
NetBSD master CVS tree commits
christos
Mon Dec 22 15:02:36 EST 1997
Update of /cvsroot/src/libexec/getNAME
In directory netbsd1:/var/slash-tmp/cvs-serv23147
Modified Files:
getNAME.c
Log Message:
Overhaul:
- Use fgetln instead of fgets and keep track of line limits.
- Use dynamically allocated buffers instead of fixed length ones.
- Use err/warn
- Don't re-scan strings needlessly.
- Handle extensions properly for page names that contain more than
one period printing:
resolv.conf (5) - resolver configuration file
instead of:
resolv.conf (conf.5) - resolver configuration file
This fixes PR/4738: "Coredump in getNAME" as a side effect.
This program is a hack; it depends on the ``standard format'' of a man page
and can get easily confused. At least now it will not core-dump...
Home |
Main Index |
Thread Index |
Old Index