mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-12 19:06:09 +00:00
Initialize mapping memory
This commit is contained in:
@@ -39,7 +39,8 @@ struct mapping* mapping_parse(char* mapping) {
|
||||
|
||||
strncpy(map->guid, guid, sizeof(map->guid));
|
||||
strncpy(map->name, name, sizeof(map->name));
|
||||
|
||||
memset(&map->abs_leftx, -1, sizeof(short) * 31);
|
||||
|
||||
char* option;
|
||||
while ((option = strtok_r(NULL, ",", &strpoint)) != NULL) {
|
||||
char *key = NULL, *value = NULL;
|
||||
|
||||
Reference in New Issue
Block a user