From 10d9d1e5a119ad1fb0d40a415a8b789ff6226634 Mon Sep 17 00:00:00 2001 From: Mark Michelson <mmichelson@digium.com> Date: Wed, 27 Feb 2008 20:37:32 +0000 Subject: [PATCH] Merged revisions 104783 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104783 | mmichelson | 2008-02-27 14:36:26 -0600 (Wed, 27 Feb 2008) | 4 lines Bump a couple of more buffers up by 2 so that annoying warnings aren't generated like crazy on every fileexists_core call. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104784 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/file.c b/main/file.c index 7aa5031369..7968148a11 100644 --- a/main/file.c +++ b/main/file.c @@ -577,7 +577,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; @@ -804,7 +804,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; -- GitLab