mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Fix incorrect reference in Lua encoding (#324)
This commit is contained in:
parent
1d6216a775
commit
fdb543cbb3
1 changed files with 2 additions and 2 deletions
|
@ -4763,8 +4763,8 @@ static void EscapeLuaString(char *s, size_t len, char **buf) {
|
|||
if (s[i] == '\\' || s[i] == '\"' || s[i] == '\n' ||
|
||||
s[i] == '\0' || s[i] == '\r') {
|
||||
appendw(buf, '\\' | 'x' << 010 |
|
||||
"0123456789abcdef"[(c & 0xF0) >> 4] << 020 |
|
||||
"0123456789abcdef"[(c & 0x0F) >> 0] << 030);
|
||||
"0123456789abcdef"[(s[i] & 0xF0) >> 4] << 020 |
|
||||
"0123456789abcdef"[(s[i] & 0x0F) >> 0] << 030);
|
||||
} else {
|
||||
appendd(buf, s+i, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue