[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/rgmanager/src/clulib clulog.c msg_socket.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rmccabe sourceware org	2007-10-26 19:02:43

Modified files:
	rgmanager/src/clulib: clulog.c msg_socket.c 

Log message:
	rgmanager format string fixes

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/clulog.c.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/msg_socket.c.diff?cvsroot=cluster&r1=1.1&r2=1.2

--- cluster/rgmanager/src/clulib/clulog.c	2007/04/30 11:22:23	1.7
+++ cluster/rgmanager/src/clulib/clulog.c	2007/10/26 19:02:43	1.8
@@ -20,7 +20,7 @@
 /** @file
  * Library routines for communicating with the logging daemon.
  *
- *  $Id: clulog.c,v 1.7 2007/04/30 11:22:23 fabbione Exp $
+ *  $Id: clulog.c,v 1.8 2007/10/26 19:02:43 rmccabe Exp $
  *
  *  Author: Jeff Moyer <moyer missioncriticallinux com>
  */
@@ -49,7 +49,7 @@
 #include <string.h>
 
 
-static const char *version __attribute__ ((unused)) = "$Revision: 1.7 $";
+static const char *version __attribute__ ((unused)) = "$Revision: 1.8 $";
 
 #ifdef DEBUG
 #include <assert.h>
@@ -282,7 +282,7 @@
 		fprintf(stdout, "%s", printmsg);
 	}
 
-	syslog(severity, logmsg);
+	syslog(severity, "%s", logmsg);
 
 	pthread_mutex_unlock(&log_mutex);
 
--- cluster/rgmanager/src/clulib/msg_socket.c	2006/07/11 23:52:41	1.1
+++ cluster/rgmanager/src/clulib/msg_socket.c	2007/10/26 19:02:43	1.2
@@ -362,7 +362,7 @@
 	unlink(RGMGR_SOCK);
 	om = umask(077);
 	su.sun_family = PF_LOCAL;
-	snprintf(su.sun_path, sizeof(su.sun_path), path);
+	snprintf(su.sun_path, sizeof(su.sun_path), "%s", path);
 
 	if (bind(sock, &su, sizeof(su)) < 0) {
 		umask(om);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]