[asterisk-commits] branch 1.2 - r7773 /branches/1.2/funcs/func_moh.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jan 4 01:06:51 CST 2006


Author: russell
Date: Wed Jan  4 01:06:50 2006
New Revision: 7773

URL: http://svn.digium.com/view/asterisk?rev=7773&view=rev
Log:
use a more correct way of determining the size of the destination buffer

Modified:
    branches/1.2/funcs/func_moh.c

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