From f9c158f702b5b28172704da77b7f668cbfe6ed8a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 11 Mar 2026 20:43:50 +0100 Subject: PositionFilePtr: replaced rewind() with fseek() --- FICS/ratings.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FICS/ratings.c b/FICS/ratings.c index c089d65..074b050 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -1712,9 +1712,9 @@ PositionFilePtr(FILE *fp, int count, int *last, int *nTied, int showComp) rating = nGames = is_computer = 0; errno = 0; - rewind(fp); - if (errno) { - warn("%s: rewind", __func__); + + if (fseek(fp, 0L, SEEK_SET) == -1) { + warn("%s: fseek", __func__); return; } -- cgit v1.2.3