]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't use static declared buf in parse_name_andor_addr
authorTerry Wilson <twilson@digium.com>
Wed, 23 Mar 2011 02:24:53 +0000 (02:24 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 23 Mar 2011 02:24:53 +0000 (02:24 +0000)
This function isn't used anywhere yet, but we definitely don't want
to keep the same value for buf between calls to the function.

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

channels/sip/reqresp_parser.c

index c6d5d3bdfa2ea4b679d5a60307cbc8b26b396636..5fb384c423c4cfc7fc6695f83ad2c0715b52a64c 100644 (file)
@@ -1128,7 +1128,7 @@ int parse_name_andor_addr(char *uri, const char *scheme, char **name,
                          struct uriparams *params, char **headers,
                          char **residue)
 {
-       static char buf[1024];
+       char buf[1024];
        char **residue2=residue;
        int ret;
        if (name) {