diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-26 13:30:24 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-26 13:30:24 -0400 |
| commit | b2e752ee3257e967fa4796b39054a7f32629291d (patch) | |
| tree | e87ef2581de45301571b0c9d79bad78aaa4677ae /parse.c | |
| parent | cfe46ee393aa3c9a2344a916bccfc4a69d4b8b77 (diff) | |
Replace heap_str with GC_strdup
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -156,7 +156,7 @@ const char *unescape(const char **out) { assert(*escape == '\\'); if (unescapes[(int)escape[1]]) { *endpos = escape + 2; - return heap_str(unescapes[(int)escape[1]]); + return GC_strdup(unescapes[(int)escape[1]]); } else if (escape[1] == 'U' && escape[2]) { char *endptr = NULL; long codepoint = strtol(escape+2, &endptr, 16); |
