mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fixed escape_string for binary data
This commit is contained in:
parent
5687e55094
commit
9332fa375c
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ std::string escape_string(std::string s) {
|
|||
case '\\': ss << "\\\\"; break;
|
||||
default:
|
||||
if (c < ' ') {
|
||||
ss << "\\" << std::oct << (int)c;
|
||||
ss << "\\" << std::oct << uint(ubyte(c));
|
||||
break;
|
||||
}
|
||||
ss << c;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue