summaryrefslogtreecommitdiffstats
path: root/apps/language.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-07-11 15:10:01 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-07-11 15:10:01 +0000
commit4f1d9b1b1c0d420de4f5a85de5d9ce62a5ae815d (patch)
tree855a5cf663872e068e52eb53b2af722d06040895 /apps/language.c
parentcef3681bae290763aa0ec378783dbaeffcf59fe3 (diff)
downloadrockbox-4f1d9b1b1c0d420de4f5a85de5d9ce62a5ae815d.tar.gz
rockbox-4f1d9b1b1c0d420de4f5a85de5d9ce62a5ae815d.tar.bz2
rockbox-4f1d9b1b1c0d420de4f5a85de5d9ce62a5ae815d.zip
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
Diffstat (limited to 'apps/language.c')
-rw-r--r--apps/language.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/language.c b/apps/language.c
index 70549e194d..fea4fb3264 100644
--- a/apps/language.c
+++ b/apps/language.c
@@ -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);