sort: avoid unaligned access.
commit9d8e077ca1f4402b608d1464794e390bc7fc5b81
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Jul 2007 07:40:55 +0000 (24 09:40 +0200)
committerJim Meyering <jim@meyering.net>
Tue, 24 Jul 2007 07:40:55 +0000 (24 09:40 +0200)
treeb0bfea4d086fd464fd1e0c2841230c4e554e7ca5
parent71aa3ea88084d17bcb4fc1031ad7b66f8647115e
sort: avoid unaligned access.
* src/sort.c (fillbuf): When enlarging the line buffer, ensure that
the new size is a multiple of "sizeof (struct line)".  This avoids
alignment problems when indexing from the end of the buffer.
Problem reported by Andreas Schwab in
<http://lists.gnu.org/archive/html/bug-coreutils/2007-07/msg00158.html>.
ChangeLog
src/sort.c