summaryrefslogtreecommitdiff
path: root/mkfs.ubifs
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs.ubifs')
-rw-r--r--mkfs.ubifs/mkfs.ubifs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c
index 427e37d..f9977bc 100644
--- a/mkfs.ubifs/mkfs.ubifs.c
+++ b/mkfs.ubifs/mkfs.ubifs.c
@@ -534,7 +534,7 @@ static int get_options(int argc, char**argv)
return err_msg("bad maximum LEB count");
break;
case 'o':
- output = strdup(optarg);
+ output = xstrdup(optarg);
break;
case 'D':
tbl_file = optarg;
@@ -627,7 +627,7 @@ static int get_options(int argc, char**argv)
}
if (optind != argc && !output)
- output = strdup(argv[optind]);
+ output = xstrdup(argv[optind]);
if (!output)
return err_msg("not output device or file specified");