diff --git a/lib/channel/GwChannelList.cpp b/lib/channel/GwChannelList.cpp index a118f13..c736ae2 100644 --- a/lib/channel/GwChannelList.cpp +++ b/lib/channel/GwChannelList.cpp @@ -72,7 +72,7 @@ public: if (handled > 0){ memmove(logBuffer,logBuffer+handled,wp-handled); wp-=handled; - logBuffer[handled]=0; + logBuffer[wp]=0; } return; }