diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-19 16:12:42 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-19 16:12:42 -0400 |
| commit | e7dc0ec85c8b591ae27fba369d35e26ec6c1b7d3 (patch) | |
| tree | 15502c7950c8f014df980da50fef775bf69593f1 | |
| parent | f61e6402bdba7f2a6c6a371b28288db6ea8979d0 (diff) | |
Better function call
| -rw-r--r-- | stdlib/paths.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/paths.c b/stdlib/paths.c index ba98e9fb..cba83112 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; } |
