Commit 8292ba16 authored by Albert Gräf's avatar Albert Gräf
Browse files

Fix to escape_double_quotes, fixes issue #76.

parent a1d3a2a1
......@@ -756,7 +756,7 @@ static void escape_double_quotes(const char *src) {
while(*s)
{
len++;
if (*s == '\"')
if (*s == '\"' || *s == '\\')
{
dq++;
}
......@@ -771,10 +771,10 @@ static void escape_double_quotes(const char *src) {
s = src;
while(*s)
{
if (*s == '\"')
if (*s == '\"' || *s == '\\')
{
*tmp++ = '\\';
*tmp++ = '\"';
*tmp++ = *s;
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment