diff options
author | midipix <writeonce@midipix.org> | 2016-03-19 19:06:06 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-03-19 19:24:49 -0400 |
commit | 869626694d99107761eecd81082b7166e829ef4c (patch) | |
tree | 731fd89d5a7fb6e909963faf879a166e6ff4737f /src | |
parent | 4c2181cae2accf4b9f48931dbf584e3e56344e84 (diff) | |
download | slibtool-869626694d99107761eecd81082b7166e829ef4c.tar.bz2 slibtool-869626694d99107761eecd81082b7166e829ef4c.tar.xz |
slbt_get_exec_ctx(): handle -Wc more elegantly.
Diffstat (limited to 'src')
-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 58131b0..3b52e75 100644 --- a/src/logic/slbt_exec_ctx.c +++ b/src/logic/slbt_exec_ctx.c @@ -190,8 +190,8 @@ int slbt_get_exec_ctx( for (; *ch; ch++) if (*ch == ',') { - *ch = '\0'; - ictx->ctx.argv[i++] = ch+1; + *ch++ = '\0'; + ictx->ctx.argv[i++] = ch; } } else { ictx->ctx.argv[i++] = ch; |