Stop "fortune -l" from looping forever.
PR: bin/58730 Submitted by: pak <pak@cns.utoronto.ca>
This commit is contained in:
parent
b194fa9395
commit
5aad4fa276
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user