Skip to content

Commit

Permalink
Fix for xml logFormat where messages contain quotes
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21197 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jun 19, 2014
1 parent 9e7a359 commit fa824f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SimulationRuntime/c/util/omc_error.c
Expand Up @@ -196,6 +196,7 @@ static void printEscapedXML(const char *msg)
if (*msg == '&') fputs("&", stdout);
else if (*msg == '<') fputs("&lt;", stdout);
else if (*msg == '>') fputs("&gt;", stdout);
else if (*msg == '"') fputs("&quot;", stdout);
else fputc(*msg, stdout);
msg++;
}
Expand Down

0 comments on commit fa824f6

Please sign in to comment.