Explorar el Código

Merge remote-tracking branch 'upstream/gtk2' into upstream

Héctor García hace 10 años
padre
commit
d5af632425
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;
     }
     }