git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-2@7147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-11-20 23:21:40 +00:00
parent 5c3f322364
commit bffc815375
2 changed files with 3 additions and 1 deletions

View File

@@ -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>

View File

@@ -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"))