diff options
-rw-r--r-- | src/logic/slbt_exec_ctx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c index 57e0c88..58131b0 100644 --- a/src/logic/slbt_exec_ctx.c +++ b/src/logic/slbt_exec_ctx.c @@ -74,7 +74,7 @@ static struct slbt_exec_ctx_impl * slbt_exec_ctx_alloc( for (parg=dctx->cctx->cargv; *parg; parg++, argc++) if (!(strncmp("-Wc,",*parg,4))) size += sizeof('\0') + slbt_parse_comma_separated_flags( - parg[4],&argc); + &(*parg)[4],&argc); else size += sizeof('\0') + strlen(*parg); @@ -185,7 +185,7 @@ int slbt_get_exec_ctx( /* cargv, -Wc */ for (i=0, parg=dctx->cctx->cargv; *parg; parg++, ch++) { if (!(strncmp("-Wc,",*parg,4))) { - strcpy(ch,parg[4]); + strcpy(ch,&(*parg)[4]); ictx->ctx.argv[i++] = ch; for (; *ch; ch++) |