diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/language.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/language.c b/apps/language.c index df8c32a05e..6ac8550e55 100644 --- a/apps/language.c +++ b/apps/language.c | |||
@@ -43,7 +43,8 @@ int lang_load(char *filename) | |||
43 | while(filesize>3) { | 43 | while(filesize>3) { |
44 | id = (ptr[0]<<8) | ptr[1]; /* get two-byte id */ | 44 | id = (ptr[0]<<8) | ptr[1]; /* get two-byte id */ |
45 | ptr+=2; /* pass the id */ | 45 | ptr+=2; /* pass the id */ |
46 | language_strings[id] = ptr; /* point to this string */ | 46 | if(id < LANG_LAST_INDEX_IN_ARRAY) |
47 | language_strings[id] = ptr; /* point to this string */ | ||
47 | while(*ptr) { /* pass the string */ | 48 | while(*ptr) { /* pass the string */ |
48 | filesize--; | 49 | filesize--; |
49 | ptr++; | 50 | ptr++; |