On Thu, 31 Mar 2005, Peter Berg Larsen wrote: > + memcpy( computername, hostname, len ); > + computername[len + 1] = 0; > or you risk the computername[len+1] is invalid. Hmm, why didnt I see that at once; usually mistake here. Dont you mean computername[len] = 0; Peter