From 230cec65c8812043cbb931b4026d07881ded567b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 15 May 2008 20:53:22 +0000 Subject: [PATCH] fix pointer thingy git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8419 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_config.h | 2 +- src/switch_config.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/switch_config.h b/src/include/switch_config.h index f4f665f213..42de903ced 100644 --- a/src/include/switch_config.h +++ b/src/include/switch_config.h @@ -65,7 +65,7 @@ struct switch_config { /*! FILE stream buffer to the opened file */ FILE *file; /*! path to the file */ - char *path; + char path[512]; /*! current category */ char category[256]; /*! current section */ diff --git a/src/switch_config.c b/src/switch_config.c index 868a50b422..5a6979d52d 100644 --- a/src/switch_config.c +++ b/src/switch_config.c @@ -66,7 +66,7 @@ SWITCH_DECLARE(int) switch_config_open_file(switch_config_t * cfg, char *file_pa } cfg->file = f; - cfg->path = path; + switch_set_string(cfg->path, path); while (switch_config_next_pair(cfg, &var, &val)) { if (file_path && (cfg->sectno != last) && !strcmp(cfg->section, file_path)) { @@ -83,7 +83,7 @@ SWITCH_DECLARE(int) switch_config_open_file(switch_config_t * cfg, char *file_pa return 0; } else { cfg->file = f; - cfg->path = path; + switch_set_string(cfg->path, path); return 1; } }