diff options
author | Mark Spencer <markster@digium.com> | 2004-07-14 13:57:15 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-07-14 13:57:15 +0000 |
commit | 044ad2e2e7a74049ed5c2215d00624be9f045e60 (patch) | |
tree | 30a1118273807f5c6ba0e3ca611ab0c6a160fa3b /pbx/pbx_spool.c | |
parent | 9cd917c42a6cf0661861a7e19d4685b2449df43f (diff) |
Merge remaining audit patch (save dlfcn.c)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_spool.c')
-rwxr-xr-x | pbx/pbx_spool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c index 9f6455ce8..2105ffe7b 100755 --- a/pbx/pbx_spool.c +++ b/pbx/pbx_spool.c @@ -129,7 +129,7 @@ static int apply_outgoing(struct outgoing *o, char *fn, FILE *f) strncpy(o->dest, c2, sizeof(o->dest) - 1); } else { ast_log(LOG_NOTICE, "Channel should be in form Tech/Dest at line %d of %s\n", lineno, fn); - strcpy(o->tech, ""); + o->tech[0] = '\0'; } } else if (!strcasecmp(buf, "callerid")) { strncpy(o->callerid, c, sizeof(o->callerid) - 1); @@ -375,7 +375,7 @@ int load_module(void) { pthread_t thread; pthread_attr_t attr; - snprintf((char *)qdir,sizeof(qdir)-1,"%s/%s",(char *)ast_config_AST_SPOOL_DIR,"outgoing"); + snprintf(qdir, sizeof(qdir), "%s/%s", ast_config_AST_SPOOL_DIR, "outgoing"); if (mkdir(qdir, 0700) && (errno != EEXIST)) { ast_log(LOG_WARNING, "Unable to create queue directory %s -- outgoing spool disabled\n", qdir); return 0; |