aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjozan <jozan@noemail.net>2020-11-06 20:51:21 +0000
committerjozan <jozan@noemail.net>2020-11-06 20:51:21 +0000
commitcebeeeb5a84162400bf5a0cd63538b7098bd5fbd (patch)
tree2dd0ec4af1483b745bb798928031ed38da30463c
parentCreated branch go-full stack (diff)
downloadunixize-cebeeeb5a84162400bf5a0cd63538b7098bd5fbd.tar.gz
unixize-cebeeeb5a84162400bf5a0cd63538b7098bd5fbd.tar.bz2
unixize-cebeeeb5a84162400bf5a0cd63538b7098bd5fbd.tar.xz
unixize-cebeeeb5a84162400bf5a0cd63538b7098bd5fbd.tar.zst
unixize-cebeeeb5a84162400bf5a0cd63538b7098bd5fbd.zip
Bug fix
FossilOrigin-Name: a0c49e9e138d0cf3e06afabad670ecf82a7382d68b29ddbe4a9bed8b77779da6
-rw-r--r--src/c_opts.c3
-rw-r--r--src/u_utils.c2
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, ":");