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) {