diff --git a/src/log.c b/src/log.c index 42a2ec17..8047084c 100644 --- a/src/log.c +++ b/src/log.c @@ -194,6 +194,7 @@ static void print_backtrace(unsigned int offset) pos = strchr(buf, '\n'); if (!pos) break; + *pos++ = '\0'; if (strcmp(buf, "??") == 0) {