mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
command: initialize netcmd->cmd_source_len before recvfrom()
This commit is contained in:
parent
cc5b491e21
commit
b3eebbd5ec
1 changed files with 1 additions and 0 deletions
|
@ -166,6 +166,7 @@ static void command_network_poll(command_t *handle)
|
|||
char buf[1024];
|
||||
|
||||
buf[0] = '\0';
|
||||
netcmd->cmd_source_len = sizeof(struct sockaddr_storage);
|
||||
ret = recvfrom(netcmd->net_fd, buf, sizeof(buf) - 1, 0,
|
||||
(struct sockaddr*)&netcmd->cmd_source,
|
||||
&netcmd->cmd_source_len);
|
||||
|
|
Loading…
Add table
Reference in a new issue