aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-27 20:36:26 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-27 20:36:26 +0000
commit9c594c145b0956d6702189ff3d1deea16fa6ce39 (patch)
tree2f0d3ac22c997ef95c87ce79ea82623452b975f2
parent34efc185b1ebd77f6c6cae2adcce0995b753fd93 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@104783 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/file.c b/main/file.c
index 2645b0bba..c1ff4c39a 100644
--- a/main/file.c
+++ b/main/file.c
@@ -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;