Skip to content

Commit

Permalink
Merge pull request #2811 from JuhaSointusalo/lib-fix-xml_escape-again
Browse files Browse the repository at this point in the history
lib: fix xml_escape(), again
  • Loading branch information
lfield authored Nov 14, 2018
2 parents e72c05a + 5e23a94 commit 7e9d41b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ void xml_escape(const char* in, char* out, int len) {
if (!strncmp(in, "]]>", 3)) {
strcpy(p, "]]>");
p += 6;
in += 3;
in += 2; // +1 from for loop
} else {
*p++ = x;
}
} else {
*p++ = x;
Expand Down

0 comments on commit 7e9d41b

Please sign in to comment.