Browse Source

Fix changing ports patch

Héctor García 11 years ago
parent
commit
0898db0edd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/mssh-terminal.c

+ 2 - 2
src/mssh-terminal.c

@@ -50,12 +50,12 @@ void mssh_terminal_start_session(MSSHTerminal *terminal, char **env)
     port = strtok(NULL, "");
     port = strtok(NULL, "");
 
 
     args[0] = strdup("ssh");
     args[0] = strdup("ssh");
-    args[1] = terminal->hostname;
+    args[1] = host;
 
 
     if (!port)
     if (!port)
         args[2] = NULL;
         args[2] = NULL;
     else {
     else {
-         args[2] = "-p";
+         args[2] = strdup("-p");
          args[3] = port;
          args[3] = port;
          args[4] = NULL;
          args[4] = NULL;
     }
     }