Hello,

gcc 4.4.4
c89

I am doing some client server socket programming.

I am just wondering if you are using memmove which doesn't null terminate. Should you null terminate yourself.

For example, I am doing this. And I am wondering should I null terminate it, after the memmove has finished. This is just in case I have copied rubbish and I will end up with a with something that is not null terminated.

Code:
memmove((char*)&serv_addr.sin_addr.s_addr,
                (char*)server->h_addr,
                server->h_length);
Many thanks any suggestions,