From: Kevin P. Fleming Date: Thu, 10 Nov 2005 23:18:03 +0000 (+0000) Subject: slight correction to options parsing X-Git-Tag: 1.2.0-rc2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff364c3068bb7907335c9a903a6cb59a670eff32;p=thirdparty%2Fasterisk.git slight correction to options parsing git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7052 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/ChangeLog b/ChangeLog index b7b4f229fb..27b3230f09 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,12 @@ 2005-11-10 Kevin P. Fleming + * app.c (ast_app_parse_options): don't increment 's' until after checking for NULL (related to issue #5630) + * apps/app_rpt.c: solve a memory leak (config structure was not freed) (issue #5706 2005-11-10 Russell Bryant - * app.c (ast_app_separate_args): Don't consider the open parenthesis as part of the arguments to an option. + * app.c (ast_app_separate_args): Don't consider the open parenthesis as part of the arguments to an option. (issue #5630) * 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 63beed1e37..bcb5c22598 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;