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 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; |