Increase prepend filename length.
authorLeif Madsen <leif@leifmadsen.com>
Mon, 9 May 2011 14:41:33 +0000 (14:41 +0000)
committerLeif Madsen <leif@leifmadsen.com>
Mon, 9 May 2011 14:41:33 +0000 (14:41 +0000)
(closes issue #19238)
Reported by: byronclark
Patches:
      increase_prepend_filename_length.patch uploaded by byronclark (license 1200)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@318194 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/app.c

index b9be317..3594b0b 100644 (file)
@@ -744,7 +744,7 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile,
        int olddspsilence = 0;
        struct ast_format rfmt;
        struct ast_silence_generator *silgen = NULL;
-       char prependfile[80];
+       char prependfile[PATH_MAX];
 
        ast_format_clear(&rfmt);
        if (silencethreshold < 0) {