diff options
author | midipix <writeonce@midipix.org> | 2016-03-19 19:22:07 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-03-19 19:24:13 -0400 |
commit | 4c2181cae2accf4b9f48931dbf584e3e56344e84 (patch) | |
tree | 6330bd1ff00e96682eca21fbc0c025165bbaf3f1 | |
parent | cae4bb51fe7ccc33458caca2edf230e0f98ba3a1 (diff) | |
download | slibtool-4c2181cae2accf4b9f48931dbf584e3e56344e84.tar.bz2 slibtool-4c2181cae2accf4b9f48931dbf584e3e56344e84.tar.xz |
slbt_get_exec_ctx(): fix handling of -Wc pass-through switch.
-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++) |