aboutsummaryrefslogtreecommitdiff
path: root/src/ast_render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast_render.cpp')
-rw-r--r--src/ast_render.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp
index 95ae216f70..defe40cb19 100644
--- a/src/ast_render.cpp
+++ b/src/ast_render.cpp
@@ -352,7 +352,7 @@ static void string_literal_escape(Buf *source, Buf *dest) {
} else if (is_printable(c)) {
buf_append_char(dest, c);
} else {
- buf_appendf(dest, "\\x%x", (int)c);
+ buf_appendf(dest, "\\x%02x", (int)c);
}
}
}