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:
kiplingw 2008-12-27 04:23:56 +00:00
parent eeb908f26d
commit 3afde73ac6
2 changed files with 5 additions and 1 deletions

View file

@ -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)

View file

@ -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));