Bugfix release 1.1.1

Fix buffer overrun in message logging when using large buffers