summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog1
-rwxr-xr-xapp.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 13765fc74..b7b4f229f 100755
--- 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 b76387825..63beed1e3 100755
--- 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)