summaryrefslogtreecommitdiff
path: root/pbx
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-02-24 10:17:40 +0000
committerOlle Johansson <oej@edvina.net>2006-02-24 10:17:40 +0000
commitdd5222fd30b3a15c08bf267dc8c703f3a5a4eb92 (patch)
treee87ec254faa8010e08a5c4d690b63f6bfa4373e5 /pbx
parente912ad9d35ed76a8cd5f9688c7ef597029a9bc43 (diff)
Update to trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_config.c2
-rw-r--r--pbx/pbx_spool.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 51947169b..d98bdd788 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -924,7 +924,7 @@ static char *complete_context_add_include(const char *line, const char *word, in
*/
static int handle_save_dialplan(int fd, int argc, char *argv[])
{
- char filename[256];
+ char filename[AST_MAX_FILENAME_LEN];
struct ast_context *c;
struct ast_config *cfg;
struct ast_variable *v;
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c
index a03085ed6..21ef3d2f1 100644
--- a/pbx/pbx_spool.c
+++ b/pbx/pbx_spool.c
@@ -57,7 +57,7 @@ static char *tdesc = "Outgoing Spool Support";
static char qdir[255];
struct outgoing {
- char fn[256];
+ char fn[AST_MAX_FILENAME_LEN];
/* Current number of retries */
int retries;
/* Maximum number of retries permitted */
@@ -78,8 +78,8 @@ struct outgoing {
char data[256];
/* If extension/context/priority */
- char exten[256];
- char context[256];
+ char exten[AST_MAX_EXTENSION];
+ char context[AST_MAX_CONTEXT];
int priority;
/* CallerID Information */
@@ -355,7 +355,7 @@ static void *scan_thread(void *unused)
struct stat st;
DIR *dir;
struct dirent *de;
- char fn[256];
+ char fn[AST_MAX_FILENAME_LEN];
int res;
time_t last = 0, next = 0, now;
for(;;) {