diff options
author | midipix <writeonce@midipix.org> | 2016-08-18 04:50:34 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-08-18 11:18:31 -0400 |
commit | 16c3a668228f843fb995c75dfffe5e291259eae0 (patch) | |
tree | 8d128a58ce4a5f3ffacde37a2fbee18d2f45d4fc | |
parent | 62462a93af5cdc6af536ec23fb4bc3dea3f0baf7 (diff) | |
download | ptycon-16c3a668228f843fb995c75dfffe5e291259eae0.tar.bz2 ptycon-16c3a668228f843fb995c75dfffe5e291259eae0.tar.xz |
driver: fix eargv initialization.
-rw-r--r-- | src/driver/ptyc_driver_ctx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |