Debugger: Clamp long input

This commit is contained in:
michaelangel007 2023-04-16 15:01:40 -07:00
parent 273d07d83f
commit ef5421ca21

View File

@ -461,7 +461,8 @@ bool ConsoleInputClear ()
//===========================================================================
bool ConsoleInputChar ( char ch )
{
if (g_nConsoleInputChars < g_nConsoleDisplayWidth) // bug? include prompt?
if (g_nConsoleInputChars < (g_nConsoleDisplayWidth-1)) // GH #1204 Need to count the space at EOL for the cursor
{
g_pConsoleInput[ g_nConsoleInputChars ] = ch;
g_nConsoleInputChars++;