mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
fix for config save, custom value types not written correctly
This commit is contained in:
parent
aa97a0a01f
commit
34c7e34f77
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ int config_write(const char *fname)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (me->generate_name != NULL) {
|
else if (me->generate_name != NULL) {
|
||||||
strncpy(line, me->generate_name(0, &dummy), sizeof(line)-1);
|
strncpy(line, me->generate_name(me->id, &dummy), sizeof(line)-1);
|
||||||
line[sizeof(line)-1] = '\0';
|
line[sizeof(line)-1] = '\0';
|
||||||
goto write_line;
|
goto write_line;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue