From c8227639db90c3147ef68f33c98e96b0ab6b01d6 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 12 Nov 2001 16:57:27 +0000 Subject: Change strdup calls to xstrdup (patch from Steve Merrifield). --- util-linux/mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util-linux/mount.c') diff --git a/util-linux/mount.c b/util-linux/mount.c index bfa9a30..e26d4db 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -463,9 +463,9 @@ extern int mount_main(int argc, char **argv) strcpy(device, m->mnt_fsname); strcpy(directory, m->mnt_dir); - filesystemType = strdup(m->mnt_type); + filesystemType = xstrdup(m->mnt_type); singlemount: - string_flags = strdup(string_flags); + string_flags = xstrdup(string_flags); rc = EXIT_SUCCESS; #ifdef CONFIG_NFSMOUNT if (strchr(device, ':') != NULL) -- cgit v1.1