Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-2] src/lib/libc/gen
Module Name: src
Committed By: riz
Date: Fri May 13 18:26:09 UTC 2005
Modified Files:
src/lib/libc/gen [netbsd-2]: getttyent.c
Log Message:
Pull up revision 1.21 (requested by is in ticket #1396):
PR/28183: Brian Marcotte: Getty eats the last character of the last field.
As Brian reports the bug is in skip(). The logic on end of line is broken.
- fix the bug which can cause buf[-1] to be written.
- don't leave the line buffer allocated on end of file.
- KNF
- use __func__ instead of hard-coding the function name.
- don't use needlessly global variables
To generate a diff of this commit:
cvs rdiff -r1.20 -r1.20.4.1 src/lib/libc/gen/getttyent.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index