diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 10:36:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 10:36:09 +0000 |
commit | 0151cc01a4f5b10ee3fe12d4ac107e05075a5a5c (patch) | |
tree | a9d6e5a8d24fc16df39017850d9871bdc0237948 /tune/tune.c | |
parent | Releasing progress-linux version 1.2.4-1~progress7.99u1. (diff) | |
download | exfatprogs-0151cc01a4f5b10ee3fe12d4ac107e05075a5a5c.tar.xz exfatprogs-0151cc01a4f5b10ee3fe12d4ac107e05075a5a5c.zip |
Merging upstream version 1.2.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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) |