]> diplodocus.org Git - nmh/blobdiff - uip/whatnowsbr.c
Document changes regarding increased per-folder sequence limits.
[nmh] / uip / whatnowsbr.c
index fd42f826553ecfca5e4561ff6c095dafa058f8c1..a084bafc73c3ff1d2d085484493829ca6511c57b 100644 (file)
@@ -552,10 +552,10 @@ writesomecmd(char *buf, int bufsz, char *cmd, char *trailcmd, char **argp)
     int trailln = strlen(trailcmd) + 4;
     if (ln < 0 || ln + trailln > bufsz)
        adios((char *)0, "arguments too long");
-    
+
     cp = buf + ln;
-    
-    while (*++argp != (char *)0) {
+
+    while (*argp  &&  *++argp) {
        ln = strlen(*argp);
        /* +1 for leading space */
        if (ln + trailln + 1 > bufsz - (cp-buf))
@@ -618,7 +618,7 @@ popen_in_dir(const char *dir, const char *cmd, const char *type)
     /* ensure that $SHELL exists, as the cmd was written relying on
        a non-blank $SHELL... */
     setenv("SHELL","/bin/sh",0); /* don't overwrite */
-    
+
     if (getcwd(olddir, sizeof(olddir)) == 0)
        adios("getcwd", "could not get working directory");
     if (chdir(dir) != 0)
@@ -852,7 +852,6 @@ sendfile (char **arg, char *file, int pushsw)
            advise (NULL, "unable to fork, so sending directly...");
        case OK:
            vec = argsplit(sendproc, &program, &vecp);
-           vec[vecp++] = invo_name;
            if (pushsw)
                vec[vecp++] = "-push";
            if (arg)