fixx off-by-one in xml preprocessor

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13385 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-05-19 15:38:45 +00:00
parent 123d724377
commit 3718cbc956
1 changed files with 2 additions and 1 deletions

View File

@ -1147,7 +1147,7 @@ static char *expand_vars(char *buf, char *ebuf, switch_size_t elen, switch_size_
while (*rp && wp < ep) {
if (*rp == '$' && *(rp + 1) == '$' && *(rp + 2) == '{') {
char *e = strchr(rp, '}');
char *e = switch_find_end_paren(rp + 2, '{', '}');
if (e) {
rp += 3;
@ -1160,6 +1160,7 @@ static char *expand_vars(char *buf, char *ebuf, switch_size_t elen, switch_size_
*wp++ = *p;
}
}
continue;
}
}