Use ftello() and fseeko() instead of ftell() and fseek() everywhere.
[pspp-builds.git] / src / data / sys-file-writer.c
index a761d4a29fc4e7262e1520104aa0aae0e32f4e47..729213bf6826337ba2a73c2c6ae6ce7ed678d7da 100644 (file)
@@ -976,7 +976,7 @@ close_writer (struct sfm_writer *w)
       /* Seek back to the beginning and update the number of cases.
          This is just a courtesy to later readers, so there's no need
          to check return values or report errors. */
-      if (ok && w->case_cnt <= INT32_MAX && !fseek (w->file, 80, SEEK_SET))
+      if (ok && w->case_cnt <= INT32_MAX && !fseeko (w->file, 80, SEEK_SET))
         {
           write_int (w, w->case_cnt);
           clearerr (w->file);