summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'app.c')
-rwxr-xr-xapp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.c b/app.c
index 63beed1e3..bcb5c2259 100755
--- a/app.c
+++ b/app.c
@@ -1544,7 +1544,7 @@ int ast_app_parse_options(const struct ast_app_option *options, struct ast_flags
if (*s == '(') {
/* Has argument */
arg = ++s;
- while (*++s && (*s != ')'));
+ while (*s && (*s++ != ')'));
if (*s) {
if (argloc)
args[argloc - 1] = arg;