Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
8292ba16
Commit
8292ba16
authored
Jun 29, 2016
by
Albert Gräf
Browse files
Fix to escape_double_quotes, fixes issue #76.
parent
a1d3a2a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/s_inter.c
View file @
8292ba16
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment