aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog2
-rwxr-xr-xres/res_musiconhold.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e1b5de76..6cd27b83e 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2005-11-20 Russell Bryant <russell@digium.com>
+ * res/res_musiconhold.c: Fix incorrect argument for the buffer size to an ast_copy_string call (issue #5791)
+
* funcs/func_enum.c: Shorten the module description (issue #5791)
2005-11-17 Russell Bryant <russell@digium.com>
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 10bd5b2ad..2a27dcec8 100755
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -946,7 +946,7 @@ static int load_moh_classes(int reload)
var = ast_variable_browse(cfg, cat);
while (var) {
if (!strcasecmp(var->name, "mode"))
- ast_copy_string(class->mode, var->value, sizeof(class->name));
+ ast_copy_string(class->mode, var->value, sizeof(class->mode));
else if (!strcasecmp(var->name, "directory"))
ast_copy_string(class->dir, var->value, sizeof(class->dir));
else if (!strcasecmp(var->name, "application"))