]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
issue #5803
authorJosh Roberson <josh@asteriasgi.com>
Sun, 20 Nov 2005 05:01:07 +0000 (05:01 +0000)
committerJosh Roberson <josh@asteriasgi.com>
Sun, 20 Nov 2005 05:01:07 +0000 (05:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7137 65c4cc65-6c06-0410-ace0-fbb531ad65f3

ChangeLog
res/res_musiconhold.c

index c9a3e12586582b3345bf49a529808ca039aaa8e1..a2bc7152c3af5ca801e7fd1f745c239386c8bbeb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
index 10bd5b2adadb98d7c306251408671dda01db0782..2a27dcec8a953f2c5714fc4db676fad8ccdb6ee4 100755 (executable)
@@ -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"))