aboutsummaryrefslogtreecommitdiffhomepage
path: root/preprocess.c
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-19 00:33:24 +0900
committernsfisis <nsfisis@gmail.com>2025-08-19 00:33:24 +0900
commit2fe3448b4547f60333b23a6cd2e5fbafacbfe2dd (patch)
tree9978c61821eb3ff93c1e576c5824ead2ef8a210c /preprocess.c
parent2aacd7a4b67bd6f9c11e005c72c4e52e6b644212 (diff)
downloadducc-2fe3448b4547f60333b23a6cd2e5fbafacbfe2dd.tar.gz
ducc-2fe3448b4547f60333b23a6cd2e5fbafacbfe2dd.tar.zst
ducc-2fe3448b4547f60333b23a6cd2e5fbafacbfe2dd.zip
fix: token_stringify()
Diffstat (limited to 'preprocess.c')
-rw-r--r--preprocess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/preprocess.c b/preprocess.c
index efa12b2..0cf7c27 100644
--- a/preprocess.c
+++ b/preprocess.c
@@ -353,7 +353,7 @@ const char* token_stringify(Token* t) {
k == TokenKind_literal_int || k == TokenKind_literal_str) {
const char* kind_str = token_kind_stringify(k);
char* buf = calloc(strlen(t->value.string) + strlen(kind_str) + 3 + 1, sizeof(char));
- sprintf(buf, "%s (%s)", strlen(t->value.string), kind_str);
+ sprintf(buf, "%s (%s)", t->value.string, kind_str);
return buf;
} else {
return token_kind_stringify(k);