aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-07-26 13:30:24 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-07-26 13:30:24 -0400
commitb2e752ee3257e967fa4796b39054a7f32629291d (patch)
treee87ef2581de45301571b0c9d79bad78aaa4677ae /tomo.c
parentcfe46ee393aa3c9a2344a916bccfc4a69d4b8b77 (diff)
Replace heap_str with GC_strdup
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tomo.c b/tomo.c
index 1e62667b..6de6d8fa 100644
--- a/tomo.c
+++ b/tomo.c
@@ -192,7 +192,7 @@ int main(int argc, char *argv[])
// For shared objects, link up all the object files into one .so file:
if (mode == MODE_COMPILE_SHARED_OBJ) {
- char *libname_id = heap_str(libname);
+ char *libname_id = GC_strdup(libname);
for (char *p = libname_id; *p; p++) {
if (!isalnum(*p) && *p != '_' && *p != '$')
*p = '_';