Changeset 39791 in vbox
- Timestamp:
- Jan 18, 2012 10:50:49 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestCtrlIO.cpp
r39418 r39791 355 355 int rc = VINF_SUCCESS; 356 356 357 char *pszOff = (char*)&m_pbBuffer[m_cbOffset]; 358 char *pszStart = pszOff; 357 char *pszOff = (char*)&m_pbBuffer[m_cbOffset]; 358 char *pszStart = pszOff; 359 uint32_t uDistance; 359 360 while (*pszStart) 360 361 { 361 362 size_t pairLen = strlen(pszStart); 362 if ((pszStart - pszOff) + pairLen + 1 >= m_cbSize) 363 uDistance = (pszStart - pszOff); 364 if (m_cbOffset + uDistance + pairLen + 1 >= m_cbSize) 363 365 { 364 366 rc = VERR_MORE_DATA; … … 393 395 * in our buffer just skip the current termination so that 394 396 * we can try next time. */ 395 u int32_t uDistance = (pszStart - pszOff);397 uDistance = (pszStart - pszOff); 396 398 if ( !uDistance 397 399 && *pszStart == '\0'
Note:
See TracChangeset
for help on using the changeset viewer.