[asterisk-commits] tilghman: trunk r221781 - /trunk/main/say.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 1 19:08:24 CDT 2009
Author: tilghman
Date: Thu Oct 1 19:08:21 2009
New Revision: 221781
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=221781
Log:
One more off-by-one in trunk
Modified:
trunk/main/say.c
Modified: trunk/main/say.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/say.c?view=diff&rev=221781&r1=221780&r2=221781
==============================================================================
--- trunk/main/say.c (original)
+++ trunk/main/say.c Thu Oct 1 19:08:21 2009
@@ -4212,7 +4212,7 @@
case '\'':
/* Literal name of a sound file */
sndoffset=0;
- for (sndoffset=0 ; (format[++offset] != '\'') && (sndoffset < 256) ; sndoffset++)
+ for (sndoffset=0 ; (format[++offset] != '\'') && (sndoffset < sizeof(sndfile) - 1) ; sndoffset++)
sndfile[sndoffset] = format[offset];
sndfile[sndoffset] = '\0';
res = wait_file(chan, ints, sndfile, lang);
More information about the asterisk-commits
mailing list