Changeset 31951 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- Aug 25, 2010 10:09:12 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r31847 r31951 687 687 while (cbLen < cbEnv) 688 688 { 689 if (RTStrAPrintf(&pData->papszEnv[i++], "%s", pcCur) < 0) 689 int cbStr = RTStrAPrintf(&pData->papszEnv[i++], "%s", pcCur); 690 if (cbStr < 0) 690 691 { 691 692 rc = VERR_NO_MEMORY; 692 693 break; 693 694 } 694 cbLen += strlen(pcCur) + 1; /* Skip terminating zero.*/695 pcCur += cb Len;695 cbLen += cbStr + 1; /* Skip terminating '\0' */ 696 pcCur += cbStr + 1; /* Skip terminating '\0' */ 696 697 } 697 698 }
Note:
See TracChangeset
for help on using the changeset viewer.