Commit 3623d038 authored by Thomas Daede's avatar Thomas Daede

Fix escaping backslashes in JSON in inspect.c.

Change-Id: I1a43ed3c13ce1f8a0a6673f8d54fc82abcfeca5b
parent 86ad10c7
......@@ -258,7 +258,7 @@ int put_str_with_escape(char *buffer, const char *str) {
int i;
int j = 0;
for (i = 0; str[i] != '\0'; i++) {
if (str[i] == '"') {
if (str[i] == '"' || str[i] == '\\') {
buffer[j++] = '\\';
}
buffer[j++] = str[i];
......
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