Changeset 2932 in kBuild
- Timestamp:
- Sep 18, 2016 4:20:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kWorker/kWorker.c
r2928 r2932 3124 3124 cNew += 256; 3125 3125 3126 3127 3126 pvNew = kHlpRealloc(pSandbox->environ, cNew * sizeof(pSandbox->environ[0])); 3128 3127 if (pvNew) … … 4093 4092 { 4094 4093 //static int s_cDbgGets = 0; 4095 KU32 cchProc = kHlpStrLen(pszProc);4094 KU32 cchProc = (KU32)kHlpStrLen(pszProc); 4096 4095 KU32 i = g_cSandboxGetProcReplacements; 4097 4096 while (i-- > 0) … … 7846 7845 KSIZE cbCmdLine; 7847 7846 KU32 i; 7848 int rc;7849 7847 7850 7848 /* Simple stuff. */ … … 7904 7902 7905 7903 /* 7906 * Setup the envi ornment.7904 * Setup the environment. 7907 7905 */ 7908 rc = kwSandboxGrowEnv(pSandbox, cEnvVars + 2);7909 if (rc== 0)7906 if ( cEnvVars + 2 <= pSandbox->cEnvVarsAllocated 7907 || kwSandboxGrowEnv(pSandbox, cEnvVars + 2) == 0) 7910 7908 { 7911 7909 KU32 iDst = 0; … … 7943 7941 } 7944 7942 else 7945 return kwErrPrintfRc(KERR_NO_MEMORY, "Error setting up environment variables: %d\n", rc);7943 return kwErrPrintfRc(KERR_NO_MEMORY, "Error setting up environment variables: kwSandboxGrowEnv failed\n"); 7946 7944 7947 7945 /* … … 8335 8333 * @param fWatcomBrainDamange Whether to apply watcom rules while quoting. 8336 8334 * @param cEnvVars The number of environment variables. 8337 * @param papszEnvVars The envi ornment vector.8335 * @param papszEnvVars The environment vector. 8338 8336 * @param cPostCmdArgs Number of post command arguments (includes cmd). 8339 8337 * @param papszPostCmdArgs The post command and its argument. … … 9096 9094 * with the kRedirect command, but not the file redirection. So long no file 9097 9095 * operation is involed, kSubmit is a drop in kRedirect replacement. This is 9098 * hand for tools like OpenWatcom, NASM and YASM which all require envi ornment9096 * hand for tools like OpenWatcom, NASM and YASM which all require environment 9099 9097 * and/or current directory changes to work. 9100 9098 *
Note:
See TracChangeset
for help on using the changeset viewer.