Fixed issues with console titles not working correctly
This commit is contained in:
@ -1090,6 +1090,8 @@ struct vconsole* newconsole(char* title, int bgpreset)
|
|||||||
|
|
||||||
if (strlen(title) > 0)
|
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));
|
safestrcpy(consoles[i].proctitle, title, sizeof(consoles[i].proctitle));
|
||||||
consoles[i].titlelocked = 1;
|
consoles[i].titlelocked = 1;
|
||||||
}
|
}
|
||||||
|
6
screen.c
6
screen.c
@ -38,9 +38,11 @@ int main(int argc, char *argv[]) {
|
|||||||
title[currenttitlelen] = ' ';
|
title[currenttitlelen] = ' ';
|
||||||
currenttitlelen++;
|
currenttitlelen++;
|
||||||
}
|
}
|
||||||
for (int x = 0; x <= sizeof(argv[i]); x++)
|
|
||||||
|
char *sx;
|
||||||
|
for (sx = argv[i]; *sx != '\0'; sx++)
|
||||||
{
|
{
|
||||||
title[currenttitlelen] = argv[i][x];
|
title[currenttitlelen] = *sx;
|
||||||
currenttitlelen++;
|
currenttitlelen++;
|
||||||
if (currenttitlelen >= 20)
|
if (currenttitlelen >= 20)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user