Small buffer size fix

This commit is contained in:
Iwan Timmer
2018-08-11 17:28:52 +02:00
parent a9f85e9574
commit 53d2e7cbf9

View File

@@ -636,7 +636,7 @@ void evdev_map(char* device) {
struct mapping map;
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);
close(fd);