Turned the old `Telnet Command' System-submenu into a more general
[sgt/putty] / unix / uxputty.c
index 3e254d2..dcfbd20 100644 (file)
 /*
  * TODO:
  * 
- *  - Fix command-line parsing to be more PuTTYlike and not so
- *    ptermy - in particular non-option arguments should be
- *    hostname and port in the obvious way.
- * 
  *  - libcharset enumeration.
  * 
  *  - fix the printer enum (I think the sensible thing is simply to
@@ -178,6 +174,7 @@ int process_nonoption_arg(char *arg, Config *cfg)
         /*
          * Otherwise, treat this argument as a host name.
          */
+        p = arg;
         while (*p && !isspace((unsigned char)*p))
             p++;
         if (*p)