projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add zlib_freetable() to prevent memory leaks. Thanks to Kevin Eric Saunders
[u/mdw/putty]
/
plink.c
diff --git
a/plink.c
b/plink.c
index
6cbc2f6
..
5efcd45
100644
(file)
--- a/
plink.c
+++ b/
plink.c
@@
-387,7
+387,7
@@
int main(int argc, char **argv) {
/* No settings for this host; use defaults */
strncpy(cfg.host, p, sizeof(cfg.host)-1);
cfg.host[sizeof(cfg.host)-1] = '\0';
/* No settings for this host; use defaults */
strncpy(cfg.host, p, sizeof(cfg.host)-1);
cfg.host[sizeof(cfg.host)-1] = '\0';
- cfg.port =
22
;
+ cfg.port =
default_port
;
} else
cfg = cfg2;
} else {
} else
cfg = cfg2;
} else {
@@
-396,7
+396,7
@@
int main(int argc, char **argv) {
cfg.username[sizeof(cfg.username)-1] = '\0';
strncpy(cfg.host, r, sizeof(cfg.host)-1);
cfg.host[sizeof(cfg.host)-1] = '\0';
cfg.username[sizeof(cfg.username)-1] = '\0';
strncpy(cfg.host, r, sizeof(cfg.host)-1);
cfg.host[sizeof(cfg.host)-1] = '\0';
- cfg.port =
22
;
+ cfg.port =
default_port
;
}
}
} else {
}
}
} else {