X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/4a693cfc5c3ee0e639bbee0215345e921715ab04..a3e17bf8e4b527d0aecf32e634e617978fe5aa26:/cmdline.c diff --git a/cmdline.c b/cmdline.c index acd3c662..599673f2 100644 --- 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;