Use ftello() and fseeko() instead of ftell() and fseek() everywhere.
[pspp-builds.git] / src / data / sys-file-reader.c
index f284f56e3f36a5de36d9acbe610626b55920f513..d2b105c0255ea7da523463f7c7caa232950f63c6 100644 (file)
@@ -2261,8 +2261,8 @@ sys_msg (struct sfm_reader *r, int class, const char *format, va_list args)
   struct string text;
 
   ds_init_empty (&text);
-  ds_put_format (&text, "\"%s\" near offset 0x%lx: ",
-                 fh_get_file_name (r->fh), (unsigned long) ftell (r->file));
+  ds_put_format (&text, "\"%s\" near offset 0x%llx: ",
+                 fh_get_file_name (r->fh), (long long int) ftello (r->file));
   ds_put_vformat (&text, format, args);
 
   m.category = msg_class_to_category (class);