mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Fix sub-string handling
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
pbx.c
2
pbx.c
@@ -726,7 +726,7 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var,
|
|||||||
if (!first)
|
if (!first)
|
||||||
first = tmpvar + strlen(tmpvar);
|
first = tmpvar + strlen(tmpvar);
|
||||||
*first='\0';
|
*first='\0';
|
||||||
pbx_substitute_variables_temp(c,tmpvar,ret,workspace,sizeof(workspace));
|
pbx_substitute_variables_temp(c,tmpvar,ret,workspace,workspacelen - 1);
|
||||||
if (!(*ret)) return;
|
if (!(*ret)) return;
|
||||||
offset=atoi(first+1);
|
offset=atoi(first+1);
|
||||||
if ((second=strchr(first+1,':'))) {
|
if ((second=strchr(first+1,':'))) {
|
||||||
|
Reference in New Issue
Block a user