From 5757a5023c4c4b252c6a0440e14e8efacaa2668b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 13 Jun 2024 12:59:19 -0400 Subject: Support loading shared libraries --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index c6d8cec2..c98bacdb 100644 --- a/parse.c +++ b/parse.c @@ -2017,7 +2017,7 @@ PARSER(parse_use) { size_t path_len = strcspn(pos, " \t\r\n;"); if (path_len < 1) parser_err(ctx, start, pos, "There is no filename here to use"); - char *path = heap_strf("%.*s.tm", (int)path_len, pos); + char *path = heap_strn(pos, path_len); pos += path_len; while (match(&pos, ";")) continue; return NewAST(ctx->file, start, pos, Use, .raw_path=path); -- cgit v1.2.3