Merge pull request #874 from js6i/master

Malloc redoBuff in reportMessage to prevent stack overflow