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:
parent
cef3681bae
commit
4f1d9b1b1c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue