From 3c49f27bf4d1db7643ca10eb176e2336b236651f Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 4 Jan 2006 07:06:50 +0000 Subject: [PATCH] use a more correct way of determining the size of the destination buffer git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7773 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_moh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/func_moh.c b/funcs/func_moh.c index 4262609b8f..25aa73af7d 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