]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix ast config path (bug #4184)
authorRussell Bryant <russell@russellbryant.com>
Wed, 11 May 2005 03:26:51 +0000 (03:26 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 11 May 2005 03:26:51 +0000 (03:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5624 65c4cc65-6c06-0410-ace0-fbb531ad65f3

config.c

index 41c53b6b6f7e59c87ec697908d981fbd4212cb6c..4e435881a64a6c712ccac516aa56edcaace5c5e3 100755 (executable)
--- a/config.c
+++ b/config.c
@@ -662,7 +662,7 @@ int ast_save(char *configfile, struct ast_config *cfg, char *generator)
        if (configfile[0] == '/') {
                strncpy(fn, configfile, sizeof(fn)-1);
        } else {
-               snprintf(fn, sizeof(fn), "%s/%s", AST_CONFIG_DIR, configfile);
+               snprintf(fn, sizeof(fn), "%s/%s", ast_config_AST_CONFIG_DIR, configfile);
        }
        time(&t);
        strncpy(date, ctime(&t), sizeof(date) - 1);