Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 02/19/2001 21:52:27
Module Name: basesrc
Committed By: jdolecek
Date: Mon Feb 19 19:52:27 UTC 2001
Modified Files:
basesrc/usr.bin/sort: fields.c
Log Message:
enterfield(): test the buffer size BEFORE assignment also for the other code
branch, since we might get called with tablepos == endkey for some special
input files (where an record would happen to fit exactly to the input
buffer) - BTW, this bug looks like it has been here ~forever ...
This seems to fix the sort crash for 'make british' build of ispell package,
as reported by Mark White at current-users@.
To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 basesrc/usr.bin/sort/fields.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.