aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-11-12 16:57:27 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-11-12 16:57:27 +0000
commitbc8366289da20a7fa72dffac54a1074cb38c8055 (patch)
treeb704ef3f684a41c7705b5e36dac2127d23d129c4 /util-linux
parent3cd86ce4657c0c9040798855e4359199609ee9c1 (diff)
downloadbusybox-w32-bc8366289da20a7fa72dffac54a1074cb38c8055.tar.gz
busybox-w32-bc8366289da20a7fa72dffac54a1074cb38c8055.tar.bz2
busybox-w32-bc8366289da20a7fa72dffac54a1074cb38c8055.zip
Change strdup calls to xstrdup (patch from Steve Merrifield).
git-svn-id: svn://busybox.net/trunk/busybox@3666 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 bfa9a3040..e26d4db7a 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -463,9 +463,9 @@ extern int mount_main(int argc, char **argv)
463 463
464 strcpy(device, m->mnt_fsname); 464 strcpy(device, m->mnt_fsname);
465 strcpy(directory, m->mnt_dir); 465 strcpy(directory, m->mnt_dir);
466 filesystemType = strdup(m->mnt_type); 466 filesystemType = xstrdup(m->mnt_type);
467singlemount: 467singlemount:
468 string_flags = strdup(string_flags); 468 string_flags = xstrdup(string_flags);
469 rc = EXIT_SUCCESS; 469 rc = EXIT_SUCCESS;
470#ifdef CONFIG_NFSMOUNT 470#ifdef CONFIG_NFSMOUNT
471 if (strchr(device, ':') != NULL) 471 if (strchr(device, ':') != NULL)