diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-19 02:41:22 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-19 02:41:22 +0000 |
commit | d6e82acffca80dacd62fa48c0e03471404015a6c (patch) | |
tree | 125624d5a675354e1c45230887ef1525a19e33cb | |
parent | d4df23a590ced0eccb04eae29f4a84f675b9d4d6 (diff) |
Fix sub-string handling
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@872 f38db490-d61c-443f-a65b-d21fe96a405b
-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,':'))) { |