Hmmm, apparently needed to be fixed in trunk, too.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 10 Mar 2010 20:54:03 +0000 (20:54 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 10 Mar 2010 20:54:03 +0000 (20:54 +0000)
(closes issue #16900)
 Reported by: bluecrow76
 Patches:
       asterisk-1.6.2.4-func_strings.diff uploaded by bluecrow76 (license 270)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@251682 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_strings.c

index a389eaf..fa0174c 100644 (file)
@@ -552,7 +552,7 @@ static int listfilter(struct ast_channel *chan, const char *cmd, char *parse, ch
                                ast_str_append(result_ptr, len, "%s", delim);
                        }
 
-                       ast_str_append_substr(result_ptr, len, begin, cur - begin + 1);
+                       ast_str_append_substr(result_ptr, len, begin, cur - begin);
                        first = 0;
                        begin = cur + dlen;
                }