Ticket #362: spawn_assert.diff
File spawn_assert.diff, 1.3 KB (added by , 8 years ago) |
---|
-
src/lib/sys/__init.c
210 210 /* copying */ 211 211 while (*src) 212 212 { 213 LIBC_ASSERT ((unsigned)*src & __KLIBC_ARG_NONZERO);213 LIBC_ASSERTM((unsigned)*src & __KLIBC_ARG_NONZERO, "flags=%x", (unsigned)*src); 214 214 argc++; 215 215 *argv++ = pool + 1; 216 216 do … … 224 224 /* counting */ 225 225 while (*src) 226 226 { 227 LIBC_ASSERT ((unsigned)*src & __KLIBC_ARG_NONZERO);227 LIBC_ASSERTM((unsigned)*src & __KLIBC_ARG_NONZERO, "flags=%x", (unsigned)*src); 228 228 argc++; 229 229 do 230 230 { -
src/lib/sys/__spawnve.c
303 303 for (i = 1; i < np->arg_count; ++i) 304 304 { 305 305 unsigned char chFlags = *pszSrc++; 306 chFlags &= __KLIBC_ARG_MASK;306 chFlags &= ~__KLIBC_ARG_MASK; 307 307 chFlags |= __KLIBC_ARG_ARGV; 308 308 cch = strlen(pszSrc) + 1; 309 309 ADD(cch + 1);