# HG changeset patch # User Matti Hamalainen # Date 1425422987 -7200 # Node ID 69c0d8ad267263b94d0ecb70568a884e46bab3b0 # Parent f8e9f6b2a41a92fa20f798ce8459a5e01359b584 Minor fix. diff -r f8e9f6b2a41a -r 69c0d8ad2672 tools/data2inc.c --- 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; }