mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-12 13:25:24 +00:00
Cleanup assignment in while in ConsoleBufferPush()
This commit is contained in:
@@ -279,8 +279,9 @@ bool ConsoleBufferPush ( const char * pText )
|
||||
const char *pSrc = pText;
|
||||
conchar_t *pDst = & g_aConsoleBuffer[ g_nConsoleBuffer ][ 0 ];
|
||||
|
||||
while ((x < CONSOLE_WIDTH) && (c = *pSrc))
|
||||
while ((x < CONSOLE_WIDTH) && *pSrc)
|
||||
{
|
||||
c = *pSrc;
|
||||
if ((c == '\n') || (x == (CONSOLE_WIDTH - 1)))
|
||||
{
|
||||
*pDst = 0;
|
||||
|
Reference in New Issue
Block a user