diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2006-03-29 20:51:06 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2006-03-29 20:51:06 +0000 |
| commit | be8f0eb9e204759ea0032d75c39c8421ebefcb07 (patch) | |
| tree | ceb3e67796dab54ae937e47975d77e0f0ea3c25d | |
| parent | 3622c9357ea7f44cc09acf22bb2b6a9b77d7e803 (diff) | |
| download | rockbox-be8f0eb9e204759ea0032d75c39c8421ebefcb07.zip rockbox-be8f0eb9e204759ea0032d75c39c8421ebefcb07.tar.gz rockbox-be8f0eb9e204759ea0032d75c39c8421ebefcb07.tar.bz2 rockbox-be8f0eb9e204759ea0032d75c39c8421ebefcb07.tar.xz | |
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
| -rwxr-xr-x | tools/genlang2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/genlang2 b/tools/genlang2 index e9c21fb..7d82f21 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); } |