mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
make sure the \ gets written for all escapes, not just octals
This commit is contained in:
parent
3b906fa5f1
commit
5294a97d6a
1 changed files with 1 additions and 1 deletions
|
@ -873,6 +873,7 @@ write_string (dstring_t *dstr, const char *str)
|
|||
continue;
|
||||
}
|
||||
if (*str) {
|
||||
*dst++ = '\\';
|
||||
switch (*str) {
|
||||
case '\"':
|
||||
case '\\':
|
||||
|
@ -900,7 +901,6 @@ write_string (dstring_t *dstr, const char *str)
|
|||
*dst++ = 'v';
|
||||
break;
|
||||
default:
|
||||
*dst++ = '\\';
|
||||
*dst++ = '0' + ((((byte) *str) >> 6) & 3);
|
||||
*dst++ = '0' + ((((byte) *str) >> 3) & 7);
|
||||
*dst++ = '0' + (((byte) *str) & 7);
|
||||
|
|
Loading…
Reference in a new issue