]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix pointer thingy
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 15 May 2008 20:56:47 +0000 (20:56 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 15 May 2008 20:56:47 +0000 (20:56 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@478 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/include/zap_config.h
libs/freetdm/src/zap_config.c

index f239fa933eb19b2c9726b2f69e2d46fd79e90d79..0b37208666449a2bc187ad1841ea247b4c630298 100644 (file)
@@ -77,7 +77,7 @@ struct zap_config {
        /*! FILE stream buffer to the opened file */
        FILE *file;
        /*! path to the file */
-       const char *path;
+       char path[512];
        /*! current category */
        char category[256];
        /*! current section */
index 4c9aaa957dc9c575062908ccd00370e9ddce4669..f27fa04621274fb58b9c853269069d1e3918443b 100644 (file)
@@ -69,7 +69,7 @@ int zap_config_open_file(zap_config_t *cfg, const char *file_path)
                        }
 
                        cfg->file = f;
-                       cfg->path = path;
+                       zap_set_string(cfg->path, path);
 
                        while (zap_config_next_pair(cfg, &var, &val)) {
                                if ((cfg->sectno != last) && !strcmp(cfg->section, file_path)) {
@@ -86,7 +86,7 @@ int zap_config_open_file(zap_config_t *cfg, const char *file_path)
                return 0;
        } else {
                cfg->file = f;
-               cfg->path = path;
+               zap_set_string(cfg->path, path);
                return 1;
        }
 }