summaryrefslogtreecommitdiffstats
path: root/dump/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'dump/dump.c')
-rw-r--r--dump/dump.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dump/dump.c b/dump/dump.c
index 73a231a..e15e195 100644
--- a/dump/dump.c
+++ b/dump/dump.c
@@ -244,11 +244,10 @@ int main(int argc, char *argv[])
if (version_only)
exit(EXIT_FAILURE);
- if (argc < 2)
+ if (argc - optind != 1)
usage();
- memset(ui.dev_name, 0, sizeof(ui.dev_name));
- snprintf(ui.dev_name, sizeof(ui.dev_name), "%s", argv[1]);
+ ui.dev_name = argv[1];
ret = exfat_get_blk_dev_info(&ui, &bd);
if (ret < 0)