]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/mount.c
Fix a couple of problems that crept into mount
[nfs-utils.git] / utils / mount / mount.c
index 487c0a62bc20f5d7edf02a72334423c1ee30702a..b367b6474fcc7c7f90c6712804c1f3ea323db2b6 100644 (file)
@@ -262,7 +262,7 @@ static void parse_opts (const char *options, int *flags, char **extra_opts)
        if (options != NULL) {
                char *opts = xstrdup(options);
                char *opt, *p;
-               int len = strlen(opts);
+               int len = strlen(opts) + 1;             /* include room for a null */
                int open_quote = 0;
 
                *extra_opts = xmalloc(len);
@@ -437,7 +437,7 @@ int main(int argc, char *argv[])
                exit(1);
        }
 
-       if (strcmp(progname, "mount.nfsv4") == 0)
+       if (strcmp(progname, "mount.nfs4") == 0)
                nfs_mount_vers = 4;
 
        if (uid != 0) {