Bugfix release 1.1.1

Fix buffer overrun in message logging when using large buffers
Merge pull request #370 from jcmurray/master

Bugfix release 1.1.1