changeset 1107:69c0d8ad2672

Minor fix.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Mar 2015 00:49:47 +0200
parents f8e9f6b2a41a
children 5a8d29b88431
files tools/data2inc.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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;
 }