From 1927e40fd092582e53e114aea7b210950175a0cb Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 17 Jan 2019 13:42:00 -0800 Subject: [PATCH] test-runner: fix garbage output on test start I missed this on a previous commit fixing the same issue with printing the test results. This fixes garbage output on lines in between test runs. --- tools/test-runner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test-runner.c b/tools/test-runner.c index ba610746..415841c5 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -1635,6 +1635,7 @@ static void set_config_cycle_info(const char *config_dir_path, struct test_stats *test_stats; memset(sep_line, '_', sizeof(sep_line) - 1); + sep_line[sizeof(sep_line) - 1] = '\0'; config_name_ptr = strrchr(config_dir_path, '/'); config_name_ptr++;