* [Cluster-devel] cluster/cman/qdisk clulog.c disk.c
@ 2007-10-26 19:00 rmccabe
0 siblings, 0 replies; 2+ messages in thread
From: rmccabe @ 2007-10-26 19:00 UTC (permalink / raw)
To: cluster-devel.redhat.com
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");
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Cluster-devel] cluster/cman/qdisk clulog.c disk.c
@ 2007-10-29 17:54 rmccabe
0 siblings, 0 replies; 2+ messages in thread
From: rmccabe @ 2007-10-29 17:54 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2007-10-29 17:54:25
Modified files:
cman/qdisk : clulog.c disk.c
Log message:
Fix format string bugs.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/clulog.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2.4.1&r2=1.2.4.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/disk.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.4&r2=1.4.4.1
--- cluster/cman/qdisk/clulog.c 2007/01/22 22:50:11 1.2.4.1
+++ cluster/cman/qdisk/clulog.c 2007/10/29 17:54:25 1.2.4.2
@@ -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 2006/06/23 16:05:33 1.4
+++ cluster/cman/qdisk/disk.c 2007/10/29 17:54:25 1.4.4.1
@@ -679,7 +679,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");
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-29 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29 17:54 [Cluster-devel] cluster/cman/qdisk clulog.c disk.c rmccabe
-- strict thread matches above, loose matches on Subject: below --
2007-10-26 19:00 rmccabe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).