Subject: | compiling with -Werror=format-security fails |
MIME-Version: | 1.0 |
X-Mailer: | MIME-tools 5.427 (Entity 5.427) |
Charset: | utf8 |
X-RT-Original-Encoding: | utf-8 |
Content-Type: | multipart/mixed; boundary="----------=_1249389126-14916-449" |
Content-Length: | 0 |
Content-Type: | text/plain |
Content-Disposition: | inline |
Content-Transfer-Encoding: | binary |
Content-Length: | 32 |
attached patch fixes the problem
Subject: | Spread-3.17.4.2-fix-security-format.patch |
MIME-Version: | 1.0 |
Content-Type: | multipart/mixed; boundary="----------=_1249389126-14916-448" |
X-Mailer: | MIME-tools 5.427 (Entity 5.427) |
Charset: | utf8 |
Content-Length: | 0 |
Content-Type: | text/plain |
Content-Disposition: | inline |
Content-Transfer-Encoding: | binary |
X-RT-Original-Encoding: | iso-8859-1 |
Content-Length: | 0 |
Content-Type: | application/octet-stream; name="Spread-3.17.4.2-fix-security-format.patch" |
Content-Disposition: | inline; filename="Spread-3.17.4.2-fix-security-format.patch" |
Content-Transfer-Encoding: | base64 |
Content-Length: | 384 |
--- Spread.xs.orig 2009-08-04 14:28:14.000000000 +0200
+++ Spread.xs 2009-08-04 14:28:42.000000000 +0200
@@ -474,7 +474,7 @@
if(SP_version(&major, &minor, &patch) <= 0 ||
major<3 || (major==3 && minor<15) ||
(major==3 && minor==15 && patch<1))
- croak(SPversionstr()) ;
+ croak("%s", SPversionstr()) ;
{
SV * sperror_sv = perl_get_sv(SPERRNO, GV_ADDMULTI) ;