aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-19 02:41:22 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-19 02:41:22 +0000
commitd6e82acffca80dacd62fa48c0e03471404015a6c (patch)
tree125624d5a675354e1c45230887ef1525a19e33cb /pbx.c
parentd4df23a590ced0eccb04eae29f4a84f675b9d4d6 (diff)
Fix sub-string handling
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@872 f38db490-d61c-443f-a65b-d21fe96a405b
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,':'))) {