mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
One more off-by-one in trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@221781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4212,7 +4212,7 @@ int ast_say_date_with_format_th(struct ast_channel *chan, time_t t, const char *
|
|||||||
case '\'':
|
case '\'':
|
||||||
/* Literal name of a sound file */
|
/* Literal name of a sound file */
|
||||||
sndoffset=0;
|
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] = format[offset];
|
||||||
sndfile[sndoffset] = '\0';
|
sndfile[sndoffset] = '\0';
|
||||||
res = wait_file(chan, ints, sndfile, lang);
|
res = wait_file(chan, ints, sndfile, lang);
|
||||||
|
|||||||
Reference in New Issue
Block a user