From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 26 Oct 2007 19:00:08 -0000 Subject: [Cluster-devel] cluster/cman/qdisk clulog.c disk.c Message-ID: <20071026190008.8347.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Changes by: rmccabe at sourceware.org 2007-10-26 19:00:06 Modified files: cman/qdisk : clulog.c disk.c Log message: More format string fixes Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/clulog.c.diff?cvsroot=cluster&r1=1.3&r2=1.4 http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/disk.c.diff?cvsroot=cluster&r1=1.5&r2=1.6 --- cluster/cman/qdisk/clulog.c 2007/01/22 22:51:05 1.3 +++ cluster/cman/qdisk/clulog.c 2007/10/26 19:00:06 1.4 @@ -273,7 +273,7 @@ fprintf(stdout, "%s", printmsg); } - syslog(severity, logmsg); + syslog(severity, "%s", logmsg); pthread_mutex_unlock(&log_mutex); --- cluster/cman/qdisk/disk.c 2007/09/11 12:38:08 1.5 +++ cluster/cman/qdisk/disk.c 2007/10/26 19:00:06 1.6 @@ -683,7 +683,7 @@ } /* Copy in the cluster/label name */ - snprintf(qh.qh_cluster, sizeof(qh.qh_cluster)-1, label); + snprintf(qh.qh_cluster, sizeof(qh.qh_cluster)-1, "%s", label); if ((qh.qh_timestamp = (uint64_t)time(NULL)) <= 0) { perror("time");