From 45d29914cc0673c8f88b745d4264688c9f7111bf Mon Sep 17 00:00:00 2001 From: oej Date: Fri, 24 Feb 2006 10:50:43 +0000 Subject: Reverting revision 10998 that was accidentaly committed to trunk. My apologies. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10989 f38db490-d61c-443f-a65b-d21fe96a405b --- config.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'config.c') diff --git a/config.c b/config.c index 6234e8f99..977226e9c 100644 --- a/config.c +++ b/config.c @@ -82,7 +82,7 @@ struct ast_comment { }; struct ast_category { - char name[AST_MAX_CONFIG_CATEGORY]; + char name[80]; int ignored; /* do not let user of the config see this category */ struct ast_variable *root; struct ast_variable *last; @@ -522,11 +522,11 @@ static int process_text_line(struct ast_config *cfg, struct ast_category **cat, static struct ast_config *config_text_file_load(const char *database, const char *table, const char *filename, struct ast_config *cfg) { - char fn[AST_MAX_FILENAME_LEN]; + char fn[256]; char buf[8192]; char *new_buf, *comment_p, *process_buf; FILE *f; - int lineno = 0; + int lineno=0; int comment = 0, nest[MAX_NESTED_COMMENTS]; struct ast_category *cat = NULL; int count = 0; @@ -669,7 +669,7 @@ static struct ast_config *config_text_file_load(const char *database, const char int config_text_file_save(const char *configfile, const struct ast_config *cfg, const char *generator) { FILE *f; - char fn[AST_MAX_FILENAME_LEN]; + char fn[256]; char date[256]=""; time_t t; struct ast_variable *var; @@ -929,8 +929,8 @@ static struct ast_config_engine text_file_engine = { struct ast_config *ast_config_internal_load(const char *filename, struct ast_config *cfg) { - char db[AST_MAX_FILENAME_LEN]; - char table[AST_MAX_FILENAME_LEN]; + char db[256]; + char table[256]; struct ast_config_engine *loader = &text_file_engine; struct ast_config *result; @@ -983,8 +983,8 @@ struct ast_config *ast_config_load(const char *filename) struct ast_variable *ast_load_realtime(const char *family, ...) { struct ast_config_engine *eng; - char db[AST_MAX_FILENAME_LEN]=""; - char table[AST_MAX_FILENAME_LEN]=""; + char db[256]=""; + char table[256]=""; struct ast_variable *res=NULL; va_list ap; @@ -1012,8 +1012,8 @@ int ast_check_realtime(const char *family) struct ast_config *ast_load_realtime_multientry(const char *family, ...) { struct ast_config_engine *eng; - char db[AST_MAX_FILENAME_LEN]=""; - char table[AST_MAX_FILENAME_LEN]=""; + char db[256]=""; + char table[256]=""; struct ast_config *res=NULL; va_list ap; @@ -1030,8 +1030,8 @@ int ast_update_realtime(const char *family, const char *keyfield, const char *lo { struct ast_config_engine *eng; int res = -1; - char db[AST_MAX_FILENAME_LEN]=""; - char table[AST_MAX_FILENAME_LEN]=""; + char db[256]=""; + char table[256]=""; va_list ap; va_start(ap, lookup); -- cgit v1.2.3