summaryrefslogtreecommitdiff
path: root/source/y/bsd-games/bsd-games.fortlen.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/y/bsd-games/bsd-games.fortlen.diff')
-rw-r--r--source/y/bsd-games/bsd-games.fortlen.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/y/bsd-games/bsd-games.fortlen.diff b/source/y/bsd-games/bsd-games.fortlen.diff
new file mode 100644
index 00000000..52b40651
--- /dev/null
+++ b/source/y/bsd-games/bsd-games.fortlen.diff
@@ -0,0 +1,11 @@
+--- ./fortune/fortune/fortune.c.orig 2001-08-29 08:11:31.000000000 -0700
++++ ./fortune/fortune/fortune.c 2003-02-03 14:27:45.000000000 -0800
+@@ -318,7 +318,7 @@
+ char line[BUFSIZ];
+
+ if (!(Fortfile->tbl.str_flags & (STR_RANDOM | STR_ORDERED)))
+- nchar = (Seekpts[1] - Seekpts[0] <= SLEN);
++ nchar = Seekpts[1] - Seekpts[0];
+ else {
+ open_fp(Fortfile);
+ (void) fseek(Fortfile->inf, (long)Seekpts[0], SEEK_SET);