]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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 13765fc74cebcb32fe7998278db0d6354a0cf6e2..b7b4f229fb9a6ce0179714edc51d9651926941e7 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 b76387825dd417764d0482f52deb84364be22008..63beed1e37e24960f893de135b01af811c671b53 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)