summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkfs.bfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'disk-utils/mkfs.bfs.c')
-rw-r--r--disk-utils/mkfs.bfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/disk-utils/mkfs.bfs.c b/disk-utils/mkfs.bfs.c
index 958dddcb8..02e4f8b7d 100644
--- a/disk-utils/mkfs.bfs.c
+++ b/disk-utils/mkfs.bfs.c
@@ -19,6 +19,7 @@
#include "c.h"
#include "nls.h"
#include "blkdev.h"
+#include "xalloc.h"
#define BFS_ROOT_INO 2
#define BFS_NAMELEN 14
@@ -134,14 +135,14 @@ main(int argc, char *argv[]) {
len = strlen(optarg);
if (len <= 0 || len > 6)
errx(EXIT_FAILURE, _("volume name too long"));
- volume = strdup(optarg);
+ volume = xstrdup(optarg);
break;
case 'F':
len = strlen(optarg);
if (len <= 0 || len > 6)
errx(EXIT_FAILURE, _("fsname name too long"));
- fsname = strdup(optarg);
+ fsname = xstrdup(optarg);
break;
case 'v':