[Asterisk-cvs] asterisk loader.c,1.31,1.32 logger.c,1.53,1.54

russell at lists.digium.com russell at lists.digium.com
Mon Dec 27 17:46:59 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv7459

Modified Files:
	loader.c logger.c 
Log Message:
fix logging issue


Index: loader.c
===================================================================
RCS file: /usr/cvsroot/asterisk/loader.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- loader.c	17 Nov 2004 13:40:47 -0000	1.31
+++ loader.c	27 Dec 2004 22:41:58 -0000	1.32
@@ -67,7 +67,7 @@
 		strcat(buf, buf2);
 	}
 	strcat(buf, "\n");
-	ast_log(LOG_DEBUG, buf);
+	ast_log(LOG_DEBUG, "%s", buf);
 	return 0;
 }
 

Index: logger.c
===================================================================
RCS file: /usr/cvsroot/asterisk/logger.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- logger.c	18 Dec 2004 22:04:06 -0000	1.53
+++ logger.c	27 Dec 2004 22:41:58 -0000	1.54
@@ -700,7 +700,7 @@
 	} /* else
 		fprintf(stdout, stuff + opos); */
 
-	ast_log(LOG_VERBOSE, stuff);
+	ast_log(LOG_VERBOSE, "%s", stuff);
 	if (strlen(stuff)) {
 		if (stuff[strlen(stuff)-1] != '\n') 
 			replacelast = 1;




More information about the svn-commits mailing list