mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 18:38:02 +00:00
Fix improper config dir path (bug #4184)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
config.c
2
config.c
@@ -689,7 +689,7 @@ int config_text_file_save(const char *configfile, const struct ast_config *cfg,
|
|||||||
if (configfile[0] == '/') {
|
if (configfile[0] == '/') {
|
||||||
strncpy(fn, configfile, sizeof(fn)-1);
|
strncpy(fn, configfile, sizeof(fn)-1);
|
||||||
} else {
|
} 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);
|
time(&t);
|
||||||
strncpy(date, ctime(&t), sizeof(date) - 1);
|
strncpy(date, ctime(&t), sizeof(date) - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user