summaryrefslogtreecommitdiffstats
path: root/src/vty/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vty/command.c')
-rw-r--r--src/vty/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vty/command.c b/src/vty/command.c
index 4189c7c0..b26e9919 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -2313,7 +2313,7 @@ cmd_execute_command_real(vector vline, struct vty *vty,
argv[argc++] = vector_slot(vline, i);
}
- if (argc >= CMD_ARGC_MAX)
+ if (argc == CMD_ARGC_MAX)
return CMD_ERR_EXEED_ARGC_MAX;
}
@@ -2458,7 +2458,7 @@ cmd_execute_command_strict(vector vline, struct vty *vty,
argv[argc++] = vector_slot(vline, i);
}
- if (argc >= CMD_ARGC_MAX)
+ if (argc == CMD_ARGC_MAX)
return CMD_ERR_EXEED_ARGC_MAX;
}