diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/fortune/fortune/fortune.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index 7030bd8eac6..7f0d3e874a4 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fortune.c,v 1.24 2007/06/26 17:51:28 moritz Exp $ */ +/* $OpenBSD: fortune.c,v 1.25 2007/09/10 14:29:53 tobias Exp $ */ /* $NetBSD: fortune.c,v 1.8 1995/03/23 08:28:40 cgd Exp $ */ /*- @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: fortune.c,v 1.24 2007/06/26 17:51:28 moritz Exp $"; +static char rcsid[] = "$OpenBSD: fortune.c,v 1.25 2007/09/10 14:29:53 tobias Exp $"; #endif #endif /* not lint */ @@ -246,7 +246,7 @@ display(FILEDESC *fp) char line[BUFSIZ]; open_fp(fp); - (void) fseek(fp->inf, (long)Seekpts[0], 0); + (void) fseek(fp->inf, (long)Seekpts[0], SEEK_SET); for (Fort_len = 0; fgets(line, sizeof line, fp->inf) != NULL && !STR_ENDSTRING(line, fp->tbl); Fort_len++) { if (fp->tbl.str_flags & STR_ROTATED) @@ -274,7 +274,7 @@ fortlen(void) nchar = (Seekpts[1] - Seekpts[0] <= SLEN); else { open_fp(Fortfile); - (void) fseek(Fortfile->inf, (long)Seekpts[0], 0); + (void) fseek(Fortfile->inf, (long)Seekpts[0], SEEK_SET); nchar = 0; while (fgets(line, sizeof line, Fortfile->inf) != NULL && !STR_ENDSTRING(line, Fortfile->tbl)) |