mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 02:20:42 +00:00
Fix memory corruption with no input devices
This commit is contained in:
@@ -200,7 +200,7 @@ void input_init(char* mapfile) {
|
||||
sig_fdindex = numFds++;
|
||||
|
||||
if (fds == NULL)
|
||||
fds = malloc(sizeof(struct pollfd));
|
||||
fds = malloc(sizeof(struct pollfd)*numFds);
|
||||
else
|
||||
fds = realloc(fds, sizeof(struct pollfd)*numFds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user