From: Russell Bryant Date: Wed, 4 Jan 2006 07:08:08 +0000 (+0000) Subject: Merged revisions 7773 via svnmerge from X-Git-Tag: 1.4.0-beta1~3084 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d603f5256ff5eb157214bf0cba6cddb637ae1db;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/trunk@7774 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_moh.c b/funcs/func_moh.c index 95e02d26b8..4a38d8fb97 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