The following changes since commit 2f2e98e639986bdc7aa422d73cc523cb32b725c6: Fio 1.50-rc2 (2011-01-12 09:07:44 +0100) are available in the git repository at: git://git.kernel.dk/fio.git master Jens Axboe (1): Correct basename usage for verify dump verify.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) --- Diff of recent changes: diff --git a/verify.c b/verify.c index b059994..14d3213 100644 --- a/verify.c +++ b/verify.c @@ -198,11 +198,11 @@ struct vcont { static void dump_buf(char *buf, unsigned int len, unsigned long long offset, const char *type, struct fio_file *f) { - char fname[256]; + char *ptr, fname[256]; int ret, fd; - strcpy(fname, f->file_name); - basename(fname); + ptr = strdup(f->file_name); + strcpy(fname, basename(ptr)); sprintf(fname + strlen(fname), ".%llu.%s", offset, type); @@ -226,6 +226,7 @@ static void dump_buf(char *buf, unsigned int len, unsigned long long offset, close(fd); log_err(" %s data dumped as %s\n", type, fname); + free(ptr); } /* -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html