]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Bump a couple of more buffers up by 2 so that annoying warnings aren't generated
authorMark Michelson <mmichelson@digium.com>
Wed, 27 Feb 2008 20:36:26 +0000 (20:36 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 27 Feb 2008 20:36:26 +0000 (20:36 +0000)
like crazy on every fileexists_core call.

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

main/file.c

index 2645b0bbaba231c15cec6da8a66da753d95d12ad..c1ff4c39a6b2fc98ad8a2f57b90e8354eeec4df1 100644 (file)
@@ -597,7 +597,7 @@ struct ast_filestream *ast_openvstream(struct ast_channel *chan, const char *fil
 
        if (preflang == NULL)
                preflang = "";
-       buflen = strlen(preflang) + strlen(filename) + 2;
+       buflen = strlen(preflang) + strlen(filename) + 4;
        buf = alloca(buflen);
        if (buf == NULL)
                return NULL;
@@ -824,7 +824,7 @@ int ast_fileexists(const char *filename, const char *fmt, const char *preflang)
 
        if (preflang == NULL)
                preflang = "";
-       buflen = strlen(preflang) + strlen(filename) + 2;       /* room for everything */
+       buflen = strlen(preflang) + strlen(filename) + 4;       /* room for everything */
        buf = alloca(buflen);
        if (buf == NULL)
                return 0;