aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_moh.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/func_moh.c')
-rw-r--r--funcs/func_moh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_moh.c b/funcs/func_moh.c
index 4262609b8..25aa73af7 100644
--- a/funcs/func_moh.c
+++ b/funcs/func_moh.c
@@ -39,7 +39,7 @@ static char *function_moh_read(struct ast_channel *chan, char *cmd, char *data,
static void function_moh_write(struct ast_channel *chan, char *cmd, char *data, const char *value)
{
- ast_copy_string(chan->musicclass, value, MAX_MUSICCLASS);
+ ast_copy_string(chan->musicclass, value, sizeof(chan->musicclass));
}
#ifndef BUILTIN_FUNC