Fixed: Segfault via buffer overflow when attempting to start or join a UDP/IP netgame in both d1x-rebirth and d2x-rebirth. Reproduceable on my box only in release mode and not debug...
This commit is contained in:
parent
eeb908f26d
commit
3afde73ac6
|
@ -1,5 +1,9 @@
|
|||
D1X-Rebirth Changelog
|
||||
|
||||
20081226
|
||||
--------
|
||||
main/netdrv_udp.c: Fixed segfault via buffer overflow when attempting to start or join a UDP/IP netgame.
|
||||
|
||||
20081224
|
||||
--------
|
||||
main/inferno.h: Now the Mac command keys work (whoops)
|
||||
|
|
|
@ -445,7 +445,7 @@ int UDPOpenSocket(socket_t *unused, int port)
|
|||
#else
|
||||
struct addrinfo hints,*res,*sres;
|
||||
int err,ai_family_;
|
||||
char cport[5];
|
||||
char cport[16];
|
||||
|
||||
memset (&hints, '\0', sizeof (struct addrinfo));
|
||||
|
||||
|
|
Loading…
Reference in a new issue