]> diplodocus.org Git - nmh/blobdiff - sbr/arglist.c
msgchk.c: Remove UUCP tests; unused since `#ifdef MF'.
[nmh] / sbr / arglist.c
index 59d311b210d1b1a8ade66885bfccb2554fb26ffe..026da19e3db557163591062c5c5356457c33d47a 100644 (file)
@@ -50,14 +50,14 @@ argsplit(char *command, char **file, int *argp)
        }
     }
 
-    argvarray = (char **)mh_xmalloc(sizeof *argvarray * (MAXARGS + 5));
+    argvarray = mh_xmalloc(sizeof *argvarray * (MAXARGS + 5));
 
     /*
      * The simple case - no spaces or shell metacharacters
      */
 
     if (!space && !metachar) {
-       argvarray[0] = getcpy(r1bindex(command, '/'));
+       argvarray[0] = mh_xstrdup(r1bindex(command, '/'));
        argvarray[1] = NULL;
        *file = mh_xstrdup(command);
        if (argp)