--- autossh-1.4a/autossh.c +++ autossh-1.4a/autossh.c @@ -61,6 +61,10 @@ # include #endif +#ifdef HAVE_SETPROCTITLE_H +# include +#endif + #ifndef __attribute__ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ # define __attribute__(x) @@ -281,7 +285,7 @@ main(int argc, char **argv) switch(ch) { case 'M': if (!env_port) - writep = optarg; + writep = strdup(optarg); break; case 'V': fprintf(stdout, "%s %s\n", __progname, VER);