aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-20 23:21:40 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-20 23:21:40 +0000
commitb5d9f6fc9c430e8f38e937bd7d1f9d568efcf5af (patch)
tree862a531a64fa9d13bb133e6f48a340a1ae5585d7 /res
parentf438c16cf0b9461f0cf1681635394db159382f59 (diff)
issue #5791
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-2@7147 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-xres/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
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"))