slight correction to options parsing
[asterisk/asterisk.git] / app.c
diff --git a/app.c b/app.c
index 63beed1..bcb5c22 100755 (executable)
--- 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;