Use fixed buffer size variable for allocating return buffer

Use fixed buffer size var when allocating return buffer from console.

This prevents issues when someone tries to use ``sizeof(char* buffer)`` and gives minor performance boost (comparing to usage of ``dStrlen()``).