Browse Source

libobs/util: Add double-quote escape value for text lookup

jp9000 10 years ago
parent
commit
8b2173f591
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libobs/util/text-lookup.c

+ 1 - 0
libobs/util/text-lookup.c

@@ -287,6 +287,7 @@ static char *convert_string(const char *str, size_t len)
 	dstr_replace(&out, "\\n", "\n");
 	dstr_replace(&out, "\\t", "\t");
 	dstr_replace(&out, "\\r", "\r");
+	dstr_replace(&out, "\\\"", "\"");
 
 	return out.array;
 }