Avoid bufferoverflow at appending logs (GUI).