diff tools/data2inc.c @ 1107:69c0d8ad2672

Minor fix.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Mar 2015 00:49:47 +0200
parents 985225a93aeb
children 5b8245e5f785
line wrap: on
line diff
--- a/tools/data2inc.c	Wed Mar 04 00:40:15 2015 +0200
+++ b/tools/data2inc.c	Wed Mar 04 00:49:47 2015 +0200
@@ -254,10 +254,10 @@
 
 off_t dmGetFileSize(FILE *f)
 {
-    off_t len, pos = ftell(f);
+    off_t len, pos = ftello(f);
     fseeko(f, 0, SEEK_END);
-    len = ftell(f);
-    fseek(f, pos, SEEK_SET);
+    len = ftello(f);
+    fseeko(f, pos, SEEK_SET);
     return len;
 }