diff options
-rwxr-xr-x | tools/genlang2 | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |