summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-04-19 02:41:22 +0000
committerMark Spencer <markster@digium.com>2003-04-19 02:41:22 +0000
commitdea29b88c50a34e14b6b15275f5d6956c569bdff (patch)
tree125624d5a675354e1c45230887ef1525a19e33cb /pbx.c
parent4a9041246893935327e578aee1f9b3516fe0166a (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-xpbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index df1ca7227..e454ed786 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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,':'))) {