From c347d8fee3aeb0181cfdf558dba0e8ba05430714 Mon Sep 17 00:00:00 2001 From: Josh Roberson Date: Sun, 20 Nov 2005 05:01:07 +0000 Subject: issue #5803 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7137 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/res_musiconhold.c') 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")) -- cgit v1.2.3