correctly terminate the current logbuffer when partially written

This commit is contained in:
andreas 2024-09-18 17:47:43 +02:00
parent e29e8eb591
commit d63b4d1661
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public:
if (handled > 0){
memmove(logBuffer,logBuffer+handled,wp-handled);
wp-=handled;
logBuffer[handled]=0;
logBuffer[wp]=0;
}
return;
}