aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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, ":");