aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-06 03:04:58 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-06 03:04:58 +0000
commite5006737913cf0182a428bea5fe509001aa4e98f (patch)
tree58d7e6695d5101aec3937aa27bc051e769ae3bbc /config.c
parent42b7c567777aacf352bdf359cd7b27e8f1a644a9 (diff)
major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5855 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rwxr-xr-xconfig.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/config.c b/config.c
index d8675e27c..916dc0c83 100755
--- a/config.c
+++ b/config.c
@@ -34,7 +34,6 @@
#include "asterisk/channel.h"
#include "asterisk/app.h"
#include "asterisk.h"
-#include "astconf.h"
#define MAX_NESTED_COMMENTS 128
#define COMMENT_START ";--"
@@ -687,7 +686,7 @@ int config_text_file_save(const char *configfile, const struct ast_config *cfg,
int blanklines = 0;
if (configfile[0] == '/') {
- strncpy(fn, configfile, sizeof(fn)-1);
+ ast_copy_string(fn, configfile, sizeof(fn));
} else {
snprintf(fn, sizeof(fn), "%s/%s", ast_config_AST_CONFIG_DIR, configfile);
}