Re: [chunkd patch 4/6] Print client port
Jeff Garzik <[email protected]> Tue, 25 May 2010 18:23:27 -0400
| Newsgroups | org.kernel.vger.hail-devel |
|---|---|
| Message-ID | <[email protected]> |
On 05/21/2010 12:54 AM, Pete Zaitcev wrote: > - host, sizeof(host), NULL, 0, NI_NUMERICHOST); > + host, sizeof(host), port, sizeof(port), NI_NUMERICHOST); > host[sizeof(host) - 1] = 0; > - applog(LOG_INFO, "client %s connected%s", host, > + host[sizeof(port) - 1] = 0; You truncate the wrong variable.