From 044ad2e2e7a74049ed5c2215d00624be9f045e60 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 14 Jul 2004 13:57:15 +0000 Subject: Merge remaining audit patch (save dlfcn.c) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3436 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx/pbx_spool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pbx/pbx_spool.c') 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; -- cgit v1.2.3