Merged revisions 317336 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Thu, 5 May 2011 19:56:44 +0000 (19:56 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 5 May 2011 19:56:44 +0000 (19:56 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r317336 | russell | 2011-05-05 14:55:58 -0500 (Thu, 05 May 2011) | 7 lines

  Increase buffer size to be PATH_MAX for a path.

  (closes issue #19239)
  Reported by: byronclark
  Patches:
        queue_announce_length.patch uploaded by byronclark (license 1200)
........

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

apps/app_queue.c

index 48e30b0..e494c7e 100644 (file)
@@ -999,7 +999,7 @@ struct callattempt {
 struct queue_ent {
        struct call_queue *parent;             /*!< What queue is our parent */
        char moh[80];                          /*!< Name of musiconhold to be used */
-       char announce[80];                     /*!< Announcement to play for member when call is answered */
+       char announce[PATH_MAX];               /*!< Announcement to play for member when call is answered */
        char context[AST_MAX_CONTEXT];         /*!< Context when user exits queue */
        char digits[AST_MAX_EXTENSION];        /*!< Digits entered while in queue */
        int valid_digits;                      /*!< Digits entered correspond to valid extension. Exited */