]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Bump up the buffer by 2.
authorJoshua Colp <jcolp@digium.com>
Wed, 27 Feb 2008 17:41:40 +0000 (17:41 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 27 Feb 2008 17:41:40 +0000 (17:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@104665 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/file.c

index 187209dc6b6abb0aa4a158c448dfeb2bf7e1fec0..2645b0bbaba231c15cec6da8a66da753d95d12ad 100644 (file)
@@ -566,7 +566,7 @@ struct ast_filestream *ast_openstream_full(struct ast_channel *chan, const char
        }
        if (preflang == NULL)
                preflang = "";
-       buflen = strlen(preflang) + strlen(filename) + 2;
+       buflen = strlen(preflang) + strlen(filename) + 4;
        buf = alloca(buflen);
        if (buf == NULL)
                return NULL;