diff options
author | Mark Spencer <markster@digium.com> | 2003-04-19 02:41:22 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-04-19 02:41:22 +0000 |
commit | dea29b88c50a34e14b6b15275f5d6956c569bdff (patch) | |
tree | 125624d5a675354e1c45230887ef1525a19e33cb /pbx.c | |
parent | 4a9041246893935327e578aee1f9b3516fe0166a (diff) |
Fix sub-string handling
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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,':'))) { |