Zero initialize variable 'rawname' in handle_file_packet()

This commit is contained in:
RElesgoe 2016-08-28 02:56:21 -07:00
parent e759c4e7a8
commit 6c63a455e7

View file

@ -104,10 +104,10 @@ namespace pvpgn
{
case CLIENT_FILE_REQ3:
{
char rawname[MAX_FILENAME_STR];
char rawname[MAX_FILENAME_STR] = {};
psock_recv(conn_get_socket(c), rawname, MAX_FILENAME_STR, 0);
file_send(c, rawname, 0, 0, 0, 1);
psock_recv(conn_get_socket(c), rawname, MAX_FILENAME_STR, 0);
file_send(c, rawname, 0, 0, 0, 1);
}
break;