Fixed issues with console titles not working correctly

This commit is contained in:
iDunnoDev
2023-01-14 01:33:30 +00:00
committed by iDunnoDev
parent 5b203d7f82
commit 8e3094f644
2 changed files with 6 additions and 2 deletions

View File

@ -1090,6 +1090,8 @@ struct vconsole* newconsole(char* title, int bgpreset)
if (strlen(title) > 0)
{
// Clear any text in the proc title incase this was a pre used console
memset(consoles[i].proctitle, 0, sizeof(consoles[i].proctitle[0]) * sizeof(consoles[i].proctitle));
safestrcpy(consoles[i].proctitle, title, sizeof(consoles[i].proctitle));
consoles[i].titlelocked = 1;
}