mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-23 08:36:42 +00:00
Small buffer size fix
This commit is contained in:
@@ -636,7 +636,7 @@ void evdev_map(char* device) {
|
|||||||
|
|
||||||
struct mapping map;
|
struct mapping map;
|
||||||
strncpy(map.name, libevdev_get_name(evdev), sizeof(map.name));
|
strncpy(map.name, libevdev_get_name(evdev), sizeof(map.name));
|
||||||
strncpy(map.guid, str_guid, sizeof(map.name));
|
strncpy(map.guid, str_guid, sizeof(map.guid));
|
||||||
|
|
||||||
libevdev_free(evdev);
|
libevdev_free(evdev);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|||||||
Reference in New Issue
Block a user