1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-29 16:44:03 +00:00

Stop "fortune -l" from looping forever.

PR:		bin/58730
Submitted by:	pak <pak@cns.utoronto.ca>
This commit is contained in:
Ceri Davies 2003-12-27 16:04:41 +00:00
parent b194fa9395
commit 5aad4fa276
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123905

View File

@ -282,7 +282,7 @@ fortlen()
char line[BUFSIZ];
if (!(Fortfile->tbl.str_flags & (STR_RANDOM | STR_ORDERED)))
nchar = (Seekpts[1] - Seekpts[0] <= SLEN);
nchar = (int)(Seekpts[1] - Seekpts[0]);
else {
open_fp(Fortfile);
(void) fseek(Fortfile->inf, Seekpts[0], 0);