[packages/rudiments] - compilation fix

witekfl witekfl at pld-linux.org
Tue Jan 14 18:10:45 CET 2014


commit 6e870a2507593ebad04b37d776675b754ba9f90a
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Tue Jan 14 18:09:43 2014 +0100

    - compilation fix

 format-security.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..79a36e3
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- rudiments-0.33/src/logger.C.orig	2009-11-21 04:30:55.000000000 +0100
++++ rudiments-0.33/src/logger.C	2014-01-14 18:04:10.192263869 +0100
+@@ -122,7 +122,7 @@ void syslogdestination::close() {
+ 
+ void syslogdestination::write(const char *string) {
+ #ifdef RUDIMENTS_HAVE_SYSLOG_H
+-	syslog(pvt->_priority,string);
++	syslog(pvt->_priority, "%s", string);
+ #endif
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rudiments.git/commitdiff/b7b89086d9b6f36684548c6535a4ef20869769d8



More information about the pld-cvs-commit mailing list