From: Ian Jackson Date: Sat, 5 Dec 2015 21:23:44 +0000 (+0000) Subject: Cope with new NNTPconnect prototype X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=f9110be3f2ae8ffbdb09df454275afef091e2ac7;p=innduct.git Cope with new NNTPconnect prototype --- diff --git a/conn.c b/conn.c index 7ee6aab..36f554f 100644 --- 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) {