Skip to content
Snippets Groups Projects
Commit 735aa51e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix for previous commit and escaped char values > 127 (0x7F)

parent a302a01b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3169 passed
......@@ -246,7 +246,7 @@ char* c_escape_str(const char* src, char* dst, size_t maxlen, BOOL ctrl_only)
strncpy(d,e,maxlen-(d-dst));
d+=strlen(d);
} else if((uchar)*s < ' ' || (uchar)*s >= '\x7f') {
d += safe_snprintf(d, maxlen-(d-dst), "\\x%02X", *s);
d += safe_snprintf(d, maxlen-(d-dst), "\\x%02X", (uchar)*s);
} else *d++=*s;
}
*d=0;
......
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