From e7dc0ec85c8b591ae27fba369d35e26ec6c1b7d3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 19 Mar 2025 16:12:42 -0400 Subject: [PATCH] Better function call --- stdlib/paths.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/paths.c b/stdlib/paths.c index ba98e9f..cba8311 100644 --- a/stdlib/paths.c +++ b/stdlib/paths.c @@ -636,7 +636,7 @@ static Text_t _next_line(FILE **f) if (u8_check((uint8_t*)line, (size_t)len) != NULL) fail("Invalid UTF8!"); - Text_t line_text = Text$format("%.*s", len, line); + Text_t line_text = Text$from_strn(line, (size_t)len); free(line); return line_text; }