[asterisk-commits] mmichelson: trunk r104784 - in /trunk: ./ main/file.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 27 14:37:33 CST 2008


Author: mmichelson
Date: Wed Feb 27 14:37:32 2008
New Revision: 104784

URL: http://svn.digium.com/view/asterisk?view=rev&rev=104784
Log:
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.


........

Modified:
    trunk/   (props changed)
    trunk/main/file.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/file.c
URL: http://svn.digium.com/view/asterisk/trunk/main/file.c?view=diff&rev=104784&r1=104783&r2=104784
==============================================================================
--- trunk/main/file.c (original)
+++ trunk/main/file.c Wed Feb 27 14:37:32 2008
@@ -577,7 +577,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;
@@ -804,7 +804,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