summaryrefslogtreecommitdiff
path: root/src/common/strlib.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-01 05:52:36 +0100
committerHaru <haru@dotalux.com>2016-06-25 17:29:43 +0200
commitd9fade08f4faf1f70671bdf02f124af7c5b236bc (patch)
tree99e5a46b3c4016741f09805965896205e1308562 /src/common/strlib.c
parentd7db381921c0d6c6b1cdaa4b2083aa1d877046f5 (diff)
downloadhercules-d9fade08f4faf1f70671bdf02f124af7c5b236bc.tar.gz
hercules-d9fade08f4faf1f70671bdf02f124af7c5b236bc.tar.bz2
hercules-d9fade08f4faf1f70671bdf02f124af7c5b236bc.tar.xz
hercules-d9fade08f4faf1f70671bdf02f124af7c5b236bc.zip
Correctly escaped special characters in the generated_translations.pot
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/strlib.c')
-rw-r--r--src/common/strlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c
index 9690151b4..b67adb63c 100644
--- a/src/common/strlib.c
+++ b/src/common/strlib.c
@@ -772,6 +772,7 @@ size_t sv_escape_c(char* out_dest, const char* src, size_t len, const char* esca
case '\v': out_dest[j++] = 'v'; break;
case '\f': out_dest[j++] = 'f'; break;
case '\?': out_dest[j++] = '?'; break;
+ case '\"': out_dest[j++] = '"'; break;
default:// to octal
out_dest[j++] = '0'+((char)(((unsigned char)src[i]&0700)>>6));
out_dest[j++] = '0'+((char)(((unsigned char)src[i]&0070)>>3));