summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-19 19:06:06 -0400
committermidipix <writeonce@midipix.org>2016-03-19 19:24:49 -0400
commit869626694d99107761eecd81082b7166e829ef4c (patch)
tree731fd89d5a7fb6e909963faf879a166e6ff4737f /src/logic
parent4c2181cae2accf4b9f48931dbf584e3e56344e84 (diff)
downloadslibtool-869626694d99107761eecd81082b7166e829ef4c.tar.bz2
slibtool-869626694d99107761eecd81082b7166e829ef4c.tar.xz
slbt_get_exec_ctx(): handle -Wc more elegantly.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_ctx.c4
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;