diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-06-13 12:59:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-06-13 12:59:19 -0400 |
| commit | 5757a5023c4c4b252c6a0440e14e8efacaa2668b (patch) | |
| tree | ebeca25fcfef82e133d0893f21bc94ddfa25afcc /parse.c | |
| parent | 217eb51280dc6e1caf3e393066a9fd084e125190 (diff) | |
Support loading shared libraries
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
