From c6d140fb8c0cf58d61bbd42ea5382f42d3b8fa20 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 21 Aug 2015 11:09:03 -0700 Subject: [PATCH] Fix aux_path for verify state saving Botched the string copies. Fixes: d264264a08 ("Add --aux-path support" Signed-off-by: Jens Axboe --- verify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/verify.c b/verify.c index 3e92d15c..7608caf5 100644 --- a/verify.c +++ b/verify.c @@ -1490,9 +1490,9 @@ void verify_save_state(int mask) char prefix[PATH_MAX]; if (aux_path) - sprintf(aux_path, "%s%slocal", aux_path, FIO_OS_PATH_SEPARATOR); + sprintf(prefix, "%s%slocal", aux_path, FIO_OS_PATH_SEPARATOR); else - strcpy(aux_path, "local"); + strcpy(prefix, "local"); __verify_save_state(state, prefix); free(state); -- 2.25.1