From e0c67b83c338ad145cbb13e5ecf7c1b1b4281dbe Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 11 Jul 2011 20:59:01 +0200 Subject: mkfs.bfs: use xstrdup from xalloc.h Signed-off-by: Sami Kerola --- disk-utils/mkfs.bfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'disk-utils/mkfs.bfs.c') 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': -- cgit v1.2.3-55-g7522