diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-12-05 21:23:44 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-12-05 21:23:44 +0000 |
commit | f9110be3f2ae8ffbdb09df454275afef091e2ac7 (patch) | |
tree | 93539684c7cf429f24f9256f19550e89c78e15a4 | |
parent | 8bba69f383a3ea1f9aea41e3f8cf1f657a0fd707 (diff) |
Cope with new NNTPconnect prototype
-rw-r--r-- | conn.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |