Debugger: Fix strlen +1 issue with History command.

Allocate strlen +1 for history buffers.