diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-10-02 00:08:21 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-10-02 00:08:21 +0000 |
commit | 486821d077f90a05a8f1bc8cf92ddbc5ea55abb9 (patch) | |
tree | e9bda7b984350de4059d5dfc8f2e340178e9cb1d /main/say.c | |
parent | 5081871fa43dc94df6bdd8ac345122b55b9856ad (diff) |
One more off-by-one in trunk
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@221781 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/say.c')
-rw-r--r-- | main/say.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/say.c b/main/say.c index 5e3ae96d9..7f7927308 100644 --- a/main/say.c +++ b/main/say.c @@ -4212,7 +4212,7 @@ int ast_say_date_with_format_th(struct ast_channel *chan, time_t t, const char * 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); |