diff options
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c index 9cdf0a5ff0..9ca8ea5407 100644 --- a/lib/command.c +++ b/lib/command.c @@ -1325,7 +1325,7 @@ DEFUN (config_hostname, { struct cmd_token *word = argv[1]; - if (!isalpha((int) word->arg[0])) + if (!isalpha((int) word->arg)) { vty_out (vty, "Please specify string starting with alphabet%s", VTY_NEWLINE); return CMD_WARNING; @@ -2011,7 +2011,7 @@ DEFUN (banner_motd_file, vty_out (vty, "%s does not exist", argv[3]->arg); else if (cmd == CMD_WARNING) vty_out (vty, "%s must be in %s", - argv[0], SYSCONFDIR); + argv[0]->arg, SYSCONFDIR); return cmd; } |
