diff --git a/libdm/libdm.c b/libdm/libdm.c index d91718a3d..fd95ca87f 100644 --- a/libdm/libdm.c +++ b/libdm/libdm.c @@ -386,7 +386,7 @@ int dm_task_run(struct dm_task *dmt) int dm_set_dev_dir(const char *dir) { - snprintf(_dm_dir, sizeof(_dm_dir), "%s/%s", dir, DM_DIR); + snprintf(_dm_dir, sizeof(_dm_dir), "%s%s", dir, DM_DIR); return 1; }