aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog3
-rwxr-xr-xapps/app_queue.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 27b3230f0..315883afe 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2005-11-10 Kevin P. Fleming <kpfleming@digium.com>
+ * apps/app_queue.c (rqm_exec): correct segfault problem (issue #5705)
+ (aqm_exec): ditto
+
* 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
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 5d8b4bc4f..ef8a1b2b7 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -2720,7 +2720,7 @@ static int rqm_exec(struct ast_channel *chan, void *data)
AST_STANDARD_APP_ARGS(args, parse);
if (ast_strlen_zero(args.interface)) {
- ast_copy_string(args.interface, chan->name, sizeof(args.interface));
+ args.interface = ast_strdupa(chan->name);
temppos = strrchr(args.interface, '-');
if (temppos)
*temppos = '\0';
@@ -2788,7 +2788,7 @@ static int aqm_exec(struct ast_channel *chan, void *data)
AST_STANDARD_APP_ARGS(args, parse);
if (ast_strlen_zero(args.interface)) {
- ast_copy_string(args.interface, chan->name, sizeof(args.interface));
+ args.interface = ast_strdupa(chan->name);
temppos = strrchr(args.interface, '-');
if (temppos)
*temppos = '\0';