summaryrefslogtreecommitdiffstats
path: root/apps/language.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/language.c')
-rw-r--r--apps/language.c3
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)
while(filesize>3) {
id = (ptr[0]<<8) | ptr[1]; /* get two-byte id */
ptr+=2; /* pass the id */
- language_strings[id] = ptr; /* point to this string */
+ if(id < LANG_LAST_INDEX_IN_ARRAY)
+ language_strings[id] = ptr; /* point to this string */
while(*ptr) { /* pass the string */
filesize--;
ptr++;