aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-04 07:06:50 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-04 07:06:50 +0000
commit2a96e1cd7698bae60807fd60abd04da629f0f411 (patch)
treee44b90b3b15fdbbf83a47205881b71273a6481af /funcs
parent221263ec10552e15622b1a85ecbcf518b5a819e6 (diff)
use a more correct way of determining the size of the destination buffer
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7773 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-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