From 2fe3448b4547f60333b23a6cd2e5fbafacbfe2dd Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 Aug 2025 00:33:24 +0900 Subject: fix: token_stringify() --- preprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2