Subject: NetBSD master CVS tree commits
To: None <source-changes@NetBSD.ORG>
From: None <source@NetBSD.ORG>
List: source-changes
Date: 12/22/1997 20:10:02
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...