16.06.2012, 01:33
Hello there.
->
Seems to fix the problem.
Код:
pData.remote_client = (char*)malloc(sizeof(char*)*15); pData.remote_client = inet_ntoa(remote_client.sin_addr);
Код:
pData.remote_client = (char*)malloc(sizeof(char*)*15); strcpy(pData.remote_client, inet_ntoa(remote_client.sin_addr));