Zero initialize variable 'rawname' in handle_file_packet()
This commit is contained in:
parent
e759c4e7a8
commit
6c63a455e7
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue