diff options
author | Josh Roberson <josh@asteriasgi.com> | 2005-11-20 05:01:07 +0000 |
---|---|---|
committer | Josh Roberson <josh@asteriasgi.com> | 2005-11-20 05:01:07 +0000 |
commit | c347d8fee3aeb0181cfdf558dba0e8ba05430714 (patch) | |
tree | 43b3b44cdf3c1d0986a245126de0e7ce4097b77b | |
parent | 15f5afeaa8f7242cc079e846406654d43c3eabf5 (diff) |
issue #5803
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | ChangeLog | 4 | ||||
-rwxr-xr-x | res/res_musiconhold.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2005-11-20 Josh Roberson <josh@asteriasgi.com> + + * res/res_musiconhold.c: Correct typo in ast_copy_string() for class->mode. (issue #5803) + 2005-11-19 Josh Roberson <josh@asteriasgi.com> * channels/Makefile: Put chan_oss back into the default build. (issue #5799) 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")) |