- Timestamp:
- Aug 10, 2007 7:05:20 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/env-generic.cpp
r4101 r4104 143 143 struct RTENVINTERNAL *pIntEnv; 144 144 145 int rc = rtEnvCreate(&pIntEnv, cEnv );145 int rc = rtEnvCreate(&pIntEnv, cEnv + 1 /* NULL */); 146 146 if (RT_FAILURE(rc)) 147 147 return rc; … … 207 207 int rc; 208 208 209 size_t cCapacity = (pIntEnv->cCount + cVars + RTENV_GROW_SIZE - 1)209 size_t cCapacity = (pIntEnv->cCount + cVars + 1 /* NULL */ + RTENV_GROW_SIZE - 1) 210 210 / RTENV_GROW_SIZE * RTENV_GROW_SIZE; 211 211 bool needAlloc = cCapacity != pIntEnv->cCapacity;
Note:
See TracChangeset
for help on using the changeset viewer.