aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjozan <jozan@noemail.net>2020-11-06 21:03:08 +0000
committerjozan <jozan@noemail.net>2020-11-06 21:03:08 +0000
commit5994aa86509add2e390b8bc315d8f6e5accc5b62 (patch)
tree2dd0ec4af1483b745bb798928031ed38da30463c
parentClean (diff)
parentBug fix (diff)
downloadunixize-5994aa86509add2e390b8bc315d8f6e5accc5b62.tar.gz
unixize-5994aa86509add2e390b8bc315d8f6e5accc5b62.tar.bz2
unixize-5994aa86509add2e390b8bc315d8f6e5accc5b62.tar.xz
unixize-5994aa86509add2e390b8bc315d8f6e5accc5b62.tar.zst
unixize-5994aa86509add2e390b8bc315d8f6e5accc5b62.zip
Merged 'go-full-stack' into 'trunk'
FossilOrigin-Name: a968f9cd6945499ff79d12e069d6efefdbd2fabd9965f5bc137912ea2b590b57
-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, ":");