Restore data-bits options for "-sercfg" that were accidentally lost in r9214.
[u/mdw/putty] / cmdline.c
index acd3c66..599673f 100644 (file)
--- a/cmdline.c
+++ b/cmdline.c
@@ -313,6 +313,7 @@ int cmdline_process_param(char *p, char *value, int need_save, Conf *conf)
        host = dupprintf("%.*s", portp - value, value);
        conf_set_str(conf, CONF_ssh_nc_host, host);
        conf_set_int(conf, CONF_ssh_nc_port, atoi(portp + 1));
+        sfree(host);
     }
     if (!strcmp(p, "-m")) {
        char *filename, *command;
@@ -503,6 +504,10 @@ int cmdline_process_param(char *p, char *value, int need_save, Conf *conf)
                    break;
 
                  case '5':
+                 case '6':
+                 case '7':
+                 case '8':
+                 case '9':
                    conf_set_int(conf, CONF_serdatabits, *nextitem-'0');
                    break;