Bugfix for hex escapes adjacent to hex-like characters

This commit is contained in:
Bruce Hill 2024-09-02 21:54:38 -04:00
parent 96f276ec18
commit 5a78eb61c8

View File

@ -1804,7 +1804,7 @@ CORD compile(env_t *env, ast_t *ast)
if (isprint(c))
code = CORD_cat_char(code, c);
else
CORD_sprintf(&code, "%r\\x%02X", code, (uint8_t)c);
CORD_sprintf(&code, "%r\"\"\\x%02X\"\"", code, (uint8_t)c);
break;
}
}