Skip to content
Snippets Groups Projects
Commit 838cc180 authored by deuce's avatar deuce
Browse files

Properly escape \ in cstrs.

parent 0fb8a81c
No related branches found
No related tags found
No related merge requests found
......@@ -344,7 +344,7 @@ void write_cstr(FILE *bin, FILE *src)
while(fread(&ch,1,1,bin)==1) {
if(ch==0)
break;
if(ch<' ' || ch > 126 || ch == '"') {
if(ch<' ' || ch > 126 || ch == '"' || ch=='\\') {
fprintf(src, "\\%03d", ch);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment