From 4f1d9b1b1c0d420de4f5a85de5d9ce62a5ae815d Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Sun, 11 Jul 2010 15:10:01 +0000 Subject: [PATCH] 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 --- apps/language.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);