mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
fix one of who knows how many issues with gcc 2.96 (at least I don't have to
worry about not being able to reproduce them on a non-intel box:)
This commit is contained in:
parent
fade981a40
commit
1a99fe74ab
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ NetadrToSockadr (netadr_t *a, struct sockaddr_in *s)
|
|||
memset (s, 0, sizeof (*s));
|
||||
s->sin_family = AF_INET;
|
||||
|
||||
*(int *) &s->sin_addr = *(int *) &a->ip;
|
||||
memcpy (&s->sin_addr, &a->ip, 4);
|
||||
s->sin_port = a->port;
|
||||
}
|
||||
|
||||
|
@ -282,7 +282,7 @@ NET_GetPacket (void)
|
|||
// Check for malformed packets
|
||||
if (is_server && ntohs(net_from.port)<1024) {
|
||||
Con_Printf ("Warning: Packet from %s dropped: Bad port\n",
|
||||
NET_AdrToString (net_from));
|
||||
NET_AdrToString (net_from));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue