diff options
-rw-r--r-- | apps/language.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/language.c b/apps/language.c index 614a4869d5..716ac69020 100644 --- a/apps/language.c +++ b/apps/language.c | |||
@@ -40,15 +40,15 @@ void lang_load(char *filename) | |||
40 | filesize-=2; | 40 | filesize-=2; |
41 | 41 | ||
42 | while(filesize>3) { | 42 | while(filesize>3) { |
43 | id = (ptr[0]<<8) | ptr[1]; | 43 | id = (ptr[0]<<8) | ptr[1]; /* get two-byte id */ |
44 | ptr+=2; | 44 | ptr+=2; /* pass the id */ |
45 | language_strings[id] = ptr; | 45 | language_strings[id] = ptr; /* point to this string */ |
46 | while(*ptr) { | 46 | while(*ptr) { /* pass the string */ |
47 | filesize--; | 47 | filesize--; |
48 | ptr++; | 48 | ptr++; |
49 | } | 49 | } |
50 | filesize-=3; | 50 | filesize-=3; /* the id and the terminating zero */ |
51 | ptr++; /* pass the terminating newline */ | 51 | ptr++; /* pass the terminating zero-byte */ |
52 | } | 52 | } |
53 | } | 53 | } |
54 | else { | 54 | else { |