Fix a stupid typo duplicating log messages.
Use memcpy for console log to avoid terminators.
Merge pull request #555 from unknownbrackets/console-th

Console thread fix