From be8f0eb9e204759ea0032d75c39c8421ebefcb07 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 29 Mar 2006 20:51:06 +0000 Subject: Don't allow completely empty strings. This fixed the total mess I noticed previous this fix. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9350 a1c6a512-1295-4272-9138-f99709370657 --- tools/genlang2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/genlang2 b/tools/genlang2 index e9c21fb65c..7d82f21b31 100755 --- a/tools/genlang2 +++ b/tools/genlang2 @@ -486,6 +486,11 @@ for $i (0x8000 .. ($voiceid-1)) { $dest =~ s:\"$:\\0\":; # insert a \0 before the second quote + if(!$dest) { + # this is just to be on the safe side + $dest = '"\0"'; + } + printf CFILE (" %s\n", $dest); } -- cgit v1.2.3