diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index 5f99a8a..20425b7 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -200,7 +200,7 @@ static int ptyc_split_argv( /* eargv */ for (parg=sargv->targv; *parg; parg++) { if (!(strcmp(*parg,"-e")) || !(strcmp(*parg,"--exec"))) { - sargv->eargv = parg; + sargv->eargv = &argv[parg-sargv->targv]; sargv->eargv++; *parg = 0; return 0;