diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ps.c | 6 | ||||
-rw-r--r-- | utils/settrans.c | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -491,9 +491,9 @@ main(int argc, char *argv[]) { size_t len = strlen (arg) + 1; arg_hack_buf = realloc (arg_hack_buf, 1 + len); - state->argv[--state->index] = arg_hack_buf; - state->argv[state->index][0] = '-'; - memcpy (&state->argv[state->index][1], arg, len); + state->argv[--state->next] = arg_hack_buf; + state->argv[state->next][0] = '-'; + memcpy (&state->argv[state->next][1], arg, len); break; } /* Otherwise, fall through and treat the arg as a process id. */ diff --git a/utils/settrans.c b/utils/settrans.c index a235a426..ced090f2 100644 --- a/utils/settrans.c +++ b/utils/settrans.c @@ -82,10 +82,10 @@ main(int argc, char *argv[]) { case ARGP_KEY_ARG: node_name = arg; - err = argz_create (state->argv + state->index, &argz, &argz_len); + err = argz_create (state->argv + state->next, &argz, &argz_len); if (err) error(3, err, "Can't create options vector"); - state->index = state->argc; /* stop parsing */ + state->next = state->argc; /* stop parsing */ break; case ARGP_KEY_NO_ARGS: |