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

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);