Merged revisions 47192 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Sat, 4 Nov 2006 17:40:42 +0000 (17:40 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 4 Nov 2006 17:40:42 +0000 (17:40 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47192 | russell | 2006-11-04 12:38:24 -0500 (Sat, 04 Nov 2006) | 3 lines

fix the "atleast" option to the "core set verbose" and "core set debug"
CLI commands

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47193 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index ba299b5..c548c49 100644 (file)
@@ -181,7 +181,7 @@ static int handle_verbose(int fd, int argc, char *argv[])
        if ((argc < 3) || (argc > 4))
                return RESULT_SHOWUSAGE;
 
-       if (!strcasecmp(argv[2], "atleast"))
+       if (!strcasecmp(argv[3], "atleast"))
                atleast = 1;
 
        if (!atleast) {
@@ -219,7 +219,7 @@ static int handle_debug(int fd, int argc, char *argv[])
        if ((argc < 3) || (argc > 5))
                return RESULT_SHOWUSAGE;
 
-       if (!strcasecmp(argv[2], "atleast"))
+       if (!strcasecmp(argv[3], "atleast"))
                atleast = 1;
 
        if (!atleast) {