aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-06-13 12:59:19 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-06-13 12:59:19 -0400
commit5757a5023c4c4b252c6a0440e14e8efacaa2668b (patch)
treeebeca25fcfef82e133d0893f21bc94ddfa25afcc /parse.c
parent217eb51280dc6e1caf3e393066a9fd084e125190 (diff)
Support loading shared libraries
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
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);