- Timestamp:
- Feb 3, 2025 3:56:40 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167301
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/script/scriptlex.cpp
r108014 r108028 375 375 376 376 /* If there is input left to process move it to the front and fill the remainder. */ 377 if (pThis->pchCur != NULL) 377 if ( pThis->pchCur != NULL 378 && pThis->pchCur != &pThis->achBuf[pThis->cchBuf]) 378 379 { 379 380 cchToRead = pThis->pchCur - &pThis->achBuf[0]; … … 381 382 memmove(&pThis->achBuf[0], pThis->pchCur, pThis->cchBuf - cchToRead); 382 383 pchRead = (char *)pThis->pchCur + 1; 383 memset(pchRead, 0, cchToRead);384 384 } 385 385 … … 395 395 if (rc == VINF_EOF) 396 396 pThis->fFlags |= RTSCRIPT_LEX_INT_F_EOS; 397 if (cchRead < cchToRead) 398 memset(pchRead + cchRead, 0, cchToRead - cchRead); 397 399 rc = VINF_SUCCESS; 398 400 }
Note:
See TracChangeset
for help on using the changeset viewer.