From: Sami Kerola Date: Mon, 11 Jul 2011 18:59:01 +0000 (+0200) Subject: mkfs.bfs: use xstrdup from xalloc.h X-Git-Tag: v2.20-rc1~84^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0c67b83c338ad145cbb13e5ecf7c1b1b4281dbe;p=thirdparty%2Futil-linux.git mkfs.bfs: use xstrdup from xalloc.h Signed-off-by: Sami Kerola --- diff --git a/disk-utils/mkfs.bfs.c b/disk-utils/mkfs.bfs.c index 958dddcb88..02e4f8b7d7 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':