another small fix

This commit is contained in:
quaK 2022-05-24 04:04:37 +03:00
parent 5465005d59
commit b75cc48ee0

View File

@ -119,9 +119,9 @@ namespace console
if (console::is_enabled() && s_wcd.hwndBuffer)
{
// if the message is REALLY long, use just the last portion of it
if (strlen(pMsg) > sizeof(s_wcd.cleanBuffer) - 1)
if (strlen(pMsg) > ((sizeof(s_wcd.cleanBuffer) / 2) - 1))
{
msg = pMsg + strlen(pMsg) - sizeof(s_wcd.cleanBuffer) + 1;
msg = pMsg + strlen(pMsg) - ((sizeof(s_wcd.cleanBuffer) / 2) + 1);
}
else
{