projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Close on exit. I'm not entirely happy with the distribution of this
[u/mdw/putty]
/
config.c
diff --git
a/config.c
b/config.c
index
2fc2362
..
1501f61
100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-402,7
+402,7
@@
static void sessionsaver_handler(union control *ctrl, void *dlg,
/* If at this point we have a valid session, go! */
if (*cfg2.host) {
*cfg = cfg2; /* structure copy */
/* If at this point we have a valid session, go! */
if (*cfg2.host) {
*cfg = cfg2; /* structure copy */
- cfg->remote_cmd_ptr =
cfg->remote_cmd; /* nasty */
+ cfg->remote_cmd_ptr =
NULL;
dlg_end(dlg, 1);
} else
dlg_beep(dlg);
dlg_end(dlg, 1);
} else
dlg_beep(dlg);
@@
-718,7
+718,7
@@
static void portfwd_handler(union control *ctrl, void *dlg,
str[i++] = type;
dlg_editbox_get(pfd->sourcebox, dlg, str+i, sizeof(str) - i);
str[i++] = type;
dlg_editbox_get(pfd->sourcebox, dlg, str+i, sizeof(str) - i);
- if (!str[
2
]) {
+ if (!str[
i
]) {
dlg_error_msg(dlg, "You need to specify a source port number");
return;
}
dlg_error_msg(dlg, "You need to specify a source port number");
return;
}