qt: fix missing null terminator in the VM paused message

This commit is contained in:
David Hrdlička
2022-05-24 23:06:28 +02:00
parent 162d8bc250
commit 0a7efe9898

View File

@@ -342,7 +342,7 @@ plat_pause(int p)
if (p) {
wcsncpy(oldtitle, ui_window_title(NULL), sizeof_w(oldtitle) - 1);
wcscpy(title, oldtitle);
QObject::tr(" - PAUSED").toWCharArray(paused_msg);
paused_msg[QObject::tr(" - PAUSED").toWCharArray(paused_msg)] = 0;
wcscat(title, paused_msg);
ui_window_title(title);
} else {