aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/ratings.c6
1 files 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;
}