diff options
-rw-r--r-- | rtty.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -44,13 +44,14 @@ main(int argc, char *argv[]) dup2(fdout, 1); /* Create new argument vector. */ - if(!(nargv = malloc(sizeof(char *)*(argc+1)))) + if(!(nargv = malloc(sizeof(char *)*(argc+2)))) err(1, "malloc"); nargv[0] = "ssh"; nargv[1] = "-tt"; + nargv[2] = "-oBatchMode=yes"; for(i = 1; i < argc; i++) - nargv[i+1] = argv[i]; - nargv[argc+1] = NULL; + nargv[i+2] = argv[i]; + nargv[argc+2] = NULL; /* Exec into ssh. */ execvp("ssh", nargv); |