summaryrefslogtreecommitdiffstats
path: root/mkfs/mkfs.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:36:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:36:08 +0000
commitf1b69cec3c86b1a52a8cc8980d139105c08518a9 (patch)
tree375566cab235df08966d399e21d0238a0ddc9bd1 /mkfs/mkfs.c
parentAdding upstream version 1.2.4. (diff)
downloadexfatprogs-f1b69cec3c86b1a52a8cc8980d139105c08518a9.tar.xz
exfatprogs-f1b69cec3c86b1a52a8cc8980d139105c08518a9.zip
Adding upstream version 1.2.5.upstream/1.2.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r--mkfs/mkfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index f9286c1..71f2b10 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -737,8 +737,7 @@ int main(int argc, char *argv[])
goto out;
}
- memset(ui.dev_name, 0, sizeof(ui.dev_name));
- snprintf(ui.dev_name, sizeof(ui.dev_name), "%s", argv[optind]);
+ ui.dev_name = argv[optind];
ret = exfat_get_blk_dev_info(&ui, &bd);
if (ret < 0)