Change strdup calls to xstrdup (patch from Steve Merrifield).

This commit is contained in:
Matt Kraai
2001-11-12 16:57:27 +00:00
parent 357cfc739e
commit c8227639db
9 changed files with 22 additions and 22 deletions

View File

@ -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)