diff options
author | Sami Kerola | 2011-07-11 20:59:01 +0200 |
---|---|---|
committer | Sami Kerola | 2011-07-11 21:11:49 +0200 |
commit | e0c67b83c338ad145cbb13e5ecf7c1b1b4281dbe (patch) | |
tree | 7a15e268b15fd2a3ba26a0e4c54076169f3e00b0 /disk-utils/mkfs.bfs.c | |
parent | mkfs.bfs: add long options (diff) | |
download | kernel-qcow2-util-linux-e0c67b83c338ad145cbb13e5ecf7c1b1b4281dbe.tar.gz kernel-qcow2-util-linux-e0c67b83c338ad145cbb13e5ecf7c1b1b4281dbe.tar.xz kernel-qcow2-util-linux-e0c67b83c338ad145cbb13e5ecf7c1b1b4281dbe.zip |
mkfs.bfs: use xstrdup from xalloc.h
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/mkfs.bfs.c')
-rw-r--r-- | disk-utils/mkfs.bfs.c | 5 |
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': |