[asterisk-commits] trunk - r7774 in /trunk: ./ funcs/func_moh.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jan 4 01:08:09 CST 2006


Author: russell
Date: Wed Jan  4 01:08:08 2006
New Revision: 7774

URL: http://svn.digium.com/view/asterisk?rev=7774&view=rev
Log:
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

........

Modified:
    trunk/   (props changed)
    trunk/funcs/func_moh.c

Propchange: trunk/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Wed Jan  4 01:08:08 2006
@@ -1,1 +1,1 @@
-/branches/1.2:1-7489,7491-7496,7498-7516,7518-7528,7530-7545,7547-7549,7551,7553-7556,7558-7579,7581-7585,7587-7594,7596-7604,7606-7640,7642-7662,7664-7705,7707-7737,7739-7746
+/branches/1.2:1-7489,7491-7496,7498-7516,7518-7528,7530-7545,7547-7549,7551,7553-7556,7558-7579,7581-7585,7587-7594,7596-7604,7606-7640,7642-7662,7664-7705,7707-7737,7739-7770,7772-7773

Modified: trunk/funcs/func_moh.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_moh.c?rev=7774&r1=7773&r2=7774&view=diff
==============================================================================
--- trunk/funcs/func_moh.c (original)
+++ trunk/funcs/func_moh.c Wed Jan  4 01:08:08 2006
@@ -40,7 +40,7 @@
 
 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



More information about the asterisk-commits mailing list