diff options
Diffstat (limited to 'stdlib/stdlib.c')
| -rw-r--r-- | stdlib/stdlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/stdlib.c b/stdlib/stdlib.c index bab97900..21102136 100644 --- a/stdlib/stdlib.c +++ b/stdlib/stdlib.c @@ -392,7 +392,7 @@ void print_stack_trace(FILE *out, int start, int stop) char **strings = strings = backtrace_symbols(array, size); for (int64_t i = start; i < size - stop; i++) { char *filename = strings[i]; - const char *cmd = heap_strf("addr2line -e %.*s -fisp | sed 's/\\$/./g;s/ at /() at /' >&2", strcspn(filename, "("), filename); + const char *cmd = heap_strf("addr2line -e %.*s -fisp | sed 's/^_\\$//;s/\\$/./g;s/ at /() at /' >&2", strcspn(filename, "("), filename); FILE *fp = popen(cmd, "w"); if (fp) { char *paren = strchrnul(strings[i], '('); |
