diff --git a/src/plugin/pctrace.cpp b/src/plugin/pctrace.cpp index ef10ded..2f4db3e 100644 --- a/src/plugin/pctrace.cpp +++ b/src/plugin/pctrace.cpp @@ -58,10 +58,9 @@ public: private: int_type overflow(int_type ch) override { - assert(pptr() > epptr()); + compress_and_write(); *pptr() = static_cast(ch); pbump(1); - compress_and_write(); return ch; }