From 3c2fefdb99b24a000a5d896097cba479ad0e62a7 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 19 Jan 2005 21:12:38 +0000 Subject: Bugfix: Due to the wrong position of the LANG_LAST_INDEX_IN_ARRAY marker, lang_load() was potentially unsafe. Loading a newer .lng file with an older rockbox build would have caused an out-of-bound access of language_strings[]. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5607 a1c6a512-1295-4272-9138-f99709370657 --- tools/genlang | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/genlang b/tools/genlang index 6032c84..e13cd3f 100755 --- a/tools/genlang +++ b/tools/genlang @@ -100,15 +100,18 @@ for(@hfile) { print HFILE " $_,\n"; } -print HFILE " /* --- below this follows voice-only strings --- */\n", - " VOICEONLY_DELIMITER = 0x8000,\n"; +print HFILE <