[asterisk-commits] mmichelson: branch 1.4 r104783 - /branches/1.4/main/file.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Feb 27 14:36:27 CST 2008
Author: mmichelson
Date: Wed Feb 27 14:36:26 2008
New Revision: 104783
URL: http://svn.digium.com/view/asterisk?view=rev&rev=104783
Log:
Bump a couple of more buffers up by 2 so that annoying warnings aren't generated
like crazy on every fileexists_core call.
Modified:
branches/1.4/main/file.c
Modified: branches/1.4/main/file.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/file.c?view=diff&rev=104783&r1=104782&r2=104783
==============================================================================
--- branches/1.4/main/file.c (original)
+++ branches/1.4/main/file.c Wed Feb 27 14:36:26 2008
@@ -597,7 +597,7 @@
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 @@
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;
More information about the asterisk-commits
mailing list