Using the following code in Dev-C++ makes the program quit, when the received message is >sizeof(buffer):
What could the problem be?Code:char buffer[32]; struct sockaddr_in from; int recv,fromlen=sizeof(from); recv=recvfrom(sd,buffer,sizeof(buffer),0,(struct sockaddr*)&from,&fromlen);