Skip to content

Commit

Permalink
correctly terminate the current logbuffer when partially written
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Sep 18, 2024
1 parent e29e8eb commit d63b4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/channel/GwChannelList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class GwSerialLog : public GwLogWriter
if (handled > 0){
memmove(logBuffer,logBuffer+handled,wp-handled);
wp-=handled;
logBuffer[handled]=0;
logBuffer[wp]=0;
}
return;
}
Expand Down

0 comments on commit d63b4d1

Please sign in to comment.