mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
use a more correct way of determining the size of the destination buffer
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user