Skip to contentSkip to conversation

cluster/cman/daemon logging.c

Cluster-devel [email protected] 1 participant 1 message Oct 29, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2007-10-29 17:56:09

Modified files:
cman/daemon : logging.c

Log message:
Fix format string bug.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/logging.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.12.2.1&r2=1.12.2.2

cman/daemon/logging.c +1 -1
@@ -39,7 +39,7 @@
 	va_start(va, fmt);
 	vsprintf(log_buf, fmt, va);
 	va_end(va);
-	log_printf(priority, log_buf);
+	log_printf(priority, "%s", log_buf);
 }
 
 void init_debug(int subsystems)