From dea29b88c50a34e14b6b15275f5d6956c569bdff Mon Sep 17 00:00:00 2001 From: Mark Spencer <markster@digium.com> Date: Sat, 19 Apr 2003 02:41:22 +0000 Subject: [PATCH] Fix sub-string handling git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@872 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbx.c b/pbx.c index df1ca7227f..e454ed786c 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,':'))) { -- GitLab