]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix the "atleast" option to the "core set verbose" and "core set debug"
authorRussell Bryant <russell@russellbryant.com>
Sat, 4 Nov 2006 17:38:24 +0000 (17:38 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 4 Nov 2006 17:38:24 +0000 (17:38 +0000)
CLI commands

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

main/cli.c

index cfd8ccce9b784159442fbd55c78e74b9acbb9253..e8f4d3b165101170a7f10035252462ce6958134d 100644 (file)
@@ -208,7 +208,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) {
@@ -273,7 +273,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) {