diff options
-rw-r--r-- | apps/language.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/language.c b/apps/language.c index 39903c4346..f8ec0a3087 100644 --- a/apps/language.c +++ b/apps/language.c | |||
@@ -65,7 +65,7 @@ int lang_load(const char *filename, const unsigned char *builtin, | |||
65 | int retcode=0; | 65 | int retcode=0; |
66 | unsigned char lang_header[HEADER_SIZE]; | 66 | unsigned char lang_header[HEADER_SIZE]; |
67 | unsigned char sub_header[SUBHEADER_SIZE]; | 67 | unsigned char sub_header[SUBHEADER_SIZE]; |
68 | unsigned int id, num_strings, foffset; | 68 | unsigned int id, foffset; |
69 | 69 | ||
70 | if(fd < 0) | 70 | if(fd < 0) |
71 | return 1; | 71 | return 1; |
@@ -77,7 +77,9 @@ int lang_load(const char *filename, const unsigned char *builtin, | |||
77 | lseek(fd, user_num * SUBHEADER_SIZE, SEEK_CUR); | 77 | lseek(fd, user_num * SUBHEADER_SIZE, SEEK_CUR); |
78 | read(fd, sub_header, SUBHEADER_SIZE); | 78 | read(fd, sub_header, SUBHEADER_SIZE); |
79 | /* read in information about the requested lang */ | 79 | /* read in information about the requested lang */ |
80 | num_strings = (sub_header[0]<<8) | sub_header[1]; | 80 | #if 0 /* unused */ |
81 | unsigned int num_strings = (sub_header[0]<<8) | sub_header[1]; | ||
82 | #endif | ||
81 | lang_size = (sub_header[2]<<8) | sub_header[3]; | 83 | lang_size = (sub_header[2]<<8) | sub_header[3]; |
82 | foffset = (sub_header[4]<<8) | sub_header[5]; | 84 | foffset = (sub_header[4]<<8) | sub_header[5]; |
83 | if(lang_size <= max_lang_size) { | 85 | if(lang_size <= max_lang_size) { |