slight correction to options parsing

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-11-10 23:18:03 +00:00
parent b124b6d649
commit ff364c3068
2 changed files with 4 additions and 2 deletions

2
app.c
View File

@@ -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;