summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorMatt Kraai2001-11-12 16:57:27 +0000
committerMatt Kraai2001-11-12 16:57:27 +0000
commitc8227639db90c3147ef68f33c98e96b0ab6b01d6 (patch)
treeb704ef3f684a41c7705b5e36dac2127d23d129c4 /util-linux
parent357cfc739ed5f5c00ee46a43820a1d02367e3b38 (diff)
downloadbusybox-c8227639db90c3147ef68f33c98e96b0ab6b01d6.zip
busybox-c8227639db90c3147ef68f33c98e96b0ab6b01d6.tar.gz
Change strdup calls to xstrdup (patch from Steve Merrifield).
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mount.c4
1 files changed, 2 insertions, 2 deletions
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)