-- cgit v1.2.3 From cebeeeb5a84162400bf5a0cd63538b7098bd5fbd Mon Sep 17 00:00:00 2001 From: jozan Date: Fri, 6 Nov 2020 20:51:21 +0000 Subject: Bug fix FossilOrigin-Name: a0c49e9e138d0cf3e06afabad670ecf82a7382d68b29ddbe4a9bed8b77779da6 --- src/c_opts.c | 3 +-- src/u_utils.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/c_opts.c b/src/c_opts.c index e9548d4..d9dd504 100644 --- a/src/c_opts.c +++ b/src/c_opts.c @@ -99,8 +99,7 @@ c_recursive_parse { char** ptr; - ptr = (char**)argv; - ptr++; + ptr = (char**)argv + 1; while (*ptr != NULL) { if ((*ptr)[1] == 'a') { opts->hidden = TRUE; diff --git a/src/u_utils.c b/src/u_utils.c index b5f0b45..e352eb6 100644 --- a/src/u_utils.c +++ b/src/u_utils.c @@ -155,7 +155,7 @@ u_get_nargv(struct opts_s* opts) u_memdel((void*)&nargv); return (NULL); } - if (i <= 3) { + if (i < 3) { return (nargv); } tok = strtok(args, ":"); -- cgit v1.2.3