mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
Cleanup assignment in while in ConsoleBufferPush()
This commit is contained in:
parent
b62758636b
commit
8aa8f347ae
@ -279,8 +279,9 @@ bool ConsoleBufferPush ( const char * pText )
|
|||||||
const char *pSrc = pText;
|
const char *pSrc = pText;
|
||||||
conchar_t *pDst = & g_aConsoleBuffer[ g_nConsoleBuffer ][ 0 ];
|
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)))
|
if ((c == '\n') || (x == (CONSOLE_WIDTH - 1)))
|
||||||
{
|
{
|
||||||
*pDst = 0;
|
*pDst = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user