diff options
Diffstat (limited to 'diskutil.c')
-rw-r--r-- | diskutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -297,7 +297,7 @@ static struct disk_util *disk_util_add(struct thread_data *td, int majdev, sfree(du); return NULL; } - strncpy((char *) du->dus.name, basename(path), FIO_DU_NAME_SZ); + strncpy((char *) du->dus.name, basename(path) - 1, FIO_DU_NAME_SZ); du->sysfs_root = path; du->major = majdev; du->minor = mindev; |