mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Properly set all 16 characters in ROM header title
This commit is contained in:
@@ -268,10 +268,7 @@ int main(int argc, char *argv[])
|
|||||||
* characters may conflict with the title.
|
* characters may conflict with the title.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int n = snprintf((char *)header + 0x34, 16, "%s", title);
|
strncpy((char *)header + 0x34, title, 16);
|
||||||
|
|
||||||
for (int i = 16; i > n; i--)
|
|
||||||
header[0x34 + i] = '\0';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (setid) {
|
if (setid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user