Fix sub-string handling

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent 4a90412468
commit dea29b88c5

@ -726,7 +726,7 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var,
if (!first)
first = tmpvar + strlen(tmpvar);
*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;
offset=atoi(first+1);
if ((second=strchr(first+1,':'))) {

Loading…
Cancel
Save