diff options
Diffstat (limited to 'tune')
-rw-r--r-- | tune/tune.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tune/tune.c b/tune/tune.c index 4966e0a..8a4b934 100644 --- a/tune/tune.c +++ b/tune/tune.c @@ -115,11 +115,10 @@ int main(int argc, char *argv[]) if (version_only) exit(EXIT_FAILURE); - if (argc < 3) + if (argc < 3 || argc - optind != 1) usage(); - memset(ui.dev_name, 0, sizeof(ui.dev_name)); - snprintf(ui.dev_name, sizeof(ui.dev_name), "%s", argv[argc - 1]); + ui.dev_name = argv[argc - 1]; ret = exfat_get_blk_dev_info(&ui, &bd); if (ret < 0) |