(closes issue #17257)
Reported by: tim_ringenbach
Patches:
hints_crash_fix.diff uploaded by tim ringenbach (license 540)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@263637
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
/*! \brief ast_extensions_state2: Check state of extension by using hints */
static int ast_extension_state2(struct ast_exten *e)
{
- char hint[AST_MAX_EXTENSION];
+ char *hint;
char *cur, *rest;
struct ast_devstate_aggregate agg;
if (!e)
return -1;
- ast_copy_string(hint, ast_get_extension_app(e), sizeof(hint));
+ hint = ast_strdupa(ast_get_extension_app(e));
rest = hint; /* One or more devices separated with a & character */
while ( (cur = strsep(&rest, "&")) ) {