summaryrefslogtreecommitdiff
path: root/firmware/common/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/unicode.c')
-rw-r--r--firmware/common/unicode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c
index 75165e4..8378039 100644
--- a/firmware/common/unicode.c
+++ b/firmware/common/unicode.c
@@ -62,8 +62,7 @@ int load_cp_table(int cp)
return 0;
}
- tablesize = lseek(file, 0, SEEK_END) / 2;
- lseek(file, 0, SEEK_SET);
+ tablesize = filesize(file) / 2;
if (tablesize > MAX_CP_TABLE_SIZE) {
DEBUGF("Invalid codepage file: %s.cp\n", filename[table-1]);