diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-04 07:08:08 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-04 07:08:08 +0000 |
commit | 27f789a6796f326105c5a8b1d72716bb30401ad5 (patch) | |
tree | cc2a266287030c0cbb3ff4c462c5e3204f0d5de2 /funcs | |
parent | c1d7c231172392b4d24291c36f025e5f9d160058 (diff) |
Merged revisions 7773 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7773 | russell | 2006-01-04 02:06:50 -0500 (Wed, 04 Jan 2006) | 2 lines
use a more correct way of determining the size of the destination buffer
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7774 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_moh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_moh.c b/funcs/func_moh.c index 95e02d26b..4a38d8fb9 100644 --- a/funcs/func_moh.c +++ b/funcs/func_moh.c @@ -40,7 +40,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 |