issue #5630, #5711, and probably others
authorRussell Bryant <russell@russellbryant.com>
Thu, 10 Nov 2005 23:12:09 +0000 (23:12 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 10 Nov 2005 23:12:09 +0000 (23:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7051 65c4cc65-6c06-0410-ace0-fbb531ad65f3

ChangeLog
app.c

index 13765fc..b7b4f22 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
 2005-11-10  Russell Bryant <russell@digium.com>
 
+       * app.c (ast_app_separate_args): Don't consider the open parenthesis as part of the arguments to an option.
        * many files: Change all references to ast_separate_app_args to ast_app_separate_args
        * many files in apps/: Clean up some application descriptions. Make sure all descriptions in changed files are wrapped at 80 characters.
 
diff --git a/app.c b/app.c
index b763878..63beed1 100755 (executable)
--- a/app.c
+++ b/app.c
@@ -1543,7 +1543,7 @@ int ast_app_parse_options(const struct ast_app_option *options, struct ast_flags
                argloc = options[curarg].arg_index;
                if (*s == '(') {
                        /* Has argument */
-                       arg = s;
+                       arg = ++s;
                        while (*++s && (*s != ')'));
                        if (*s) {
                                if (argloc)