aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-02 21:54:38 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-02 21:54:38 -0400
commit5a78eb61c876f73f6ed6bb3d631e0edc065026db (patch)
treed8912da32ee4b4ac489ccea6b4ad586dfbb8f3a5
parent96f276ec18585cd651031800298216be0f041434 (diff)
Bugfix for hex escapes adjacent to hex-like characters
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index a4972b14..5c4cc592 100644
--- a/compile.c
+++ b/compile.c
@@ -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;
}
}