chiark
/
gitweb
/
~ian
/
innduct.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bba69f
)
Cope with new NNTPconnect prototype
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 5 Dec 2015 21:23:44 +0000
(21:23 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 5 Dec 2015 21:23:44 +0000
(21:23 +0000)
conn.c
patch
|
blob
|
history
diff --git
a/conn.c
b/conn.c
index 7ee6aabb11ed435c2cefdef1d335d465cd87d638..36f554f1a6e422ca34e3de52540bea7157750dc4 100644
(file)
--- a/
conn.c
+++ b/
conn.c
@@
-376,7
+376,9
@@
void connect_start(void) {
xclose(socks[0], "(in child) parent's connection fdpass socket",0);
alarm(connection_setup_timeout);
- if (NNTPconnect((char*)remote_host, port, &cn_from, &cn_to, buf) < 0) {
+ buf[sizeof(buf)-1] = 0;
+ if (NNTPconnect(remote_host, port, &cn_from, &cn_to,
+ buf, sizeof(buf)-1) < 0) {
int l= strlen(buf);
int stripped=0;
while (l>0) {