aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-21 18:05:42 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-21 18:05:42 +0000
commit2552b1a861ec16381c421dbc2ac725bc0aeb3021 (patch)
treeeadeaaa315750486dbab06c0ec0876fb74fac638 /funcs
parent55e316993567d824e3d74f2c2fcc4d2ceb1c291f (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@13960 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_strings.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/funcs/func_strings.c b/funcs/func_strings.c
index 503611bbe..27c457dd4 100644
--- a/funcs/func_strings.c
+++ b/funcs/func_strings.c
@@ -89,10 +89,9 @@ static char *builtin_function_regex(struct ast_channel *chan, char *cmd, char *d
/* Regex in quotes */
arg = strchr(tmp, '"');
if (arg) {
- arg++;
- earg = strrchr(arg, '"');
+ earg = ++arg;
+ strsep(&earg, "\"");
if (earg) {
- *earg++ = '\0';
/* Skip over any spaces before the data we are checking */
while (*earg == ' ')
earg++;