From 5a78eb61c876f73f6ed6bb3d631e0edc065026db Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 2 Sep 2024 21:54:38 -0400 Subject: Bugfix for hex escapes adjacent to hex-like characters --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3