make language array initialized correctlly with builtin strings when loading .lng file.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27385 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2010-07-11 15:10:01 +00:00
parent cef3681bae
commit 4f1d9b1b1c

View file

@ -82,7 +82,7 @@ int lang_load(const char *filename, const unsigned char *builtin,
foffset = (sub_header[4]<<8) | sub_header[5];
if(lang_size <= max_lang_size) {
/* initialize with builtin */
lang_init(builtin, dest, num_strings);
lang_init(builtin, dest, max_id);
lseek(fd, foffset, SEEK_SET);
read(fd, buffer, lang_size);