mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-21 15:57:32 +00:00
Fix memory corruption with no input devices
This commit is contained in:
1 parent
63120acf7d
commit
5263607ec8
1 file changed
+1
-1
+1
-1
@@ -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