perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tors...@apache.org
Subject svn commit: r1301966 - /perl/modperl/trunk/xs/Apache2/SubProcess/Apache2__SubProcess.h
Date Sat, 17 Mar 2012 17:25:01 GMT
Author: torsten
Date: Sat Mar 17 17:25:01 2012
New Revision: 1301966

URL: http://svn.apache.org/viewvc?rev=1301966&view=rev
Log:
fix a few false positive warnings when compiled with -Werror=format-security (reported by
Niko Tyni)

Modified:
    perl/modperl/trunk/xs/Apache2/SubProcess/Apache2__SubProcess.h

Modified: perl/modperl/trunk/xs/Apache2/SubProcess/Apache2__SubProcess.h
URL: http://svn.apache.org/viewvc/perl/modperl/trunk/xs/Apache2/SubProcess/Apache2__SubProcess.h?rev=1301966&r1=1301965&r2=1301966&view=diff
==============================================================================
--- perl/modperl/trunk/xs/Apache2/SubProcess/Apache2__SubProcess.h (original)
+++ perl/modperl/trunk/xs/Apache2/SubProcess/Apache2__SubProcess.h Sat Mar 17 17:25:01 2012
@@ -135,7 +135,7 @@ MP_STATIC XS(MPXS_modperl_spawn_proc_pro
     const char *usage = "Usage: spawn_proc_prog($r, $command, [\\@argv])";
 
     if (items < 2) {
-        Perl_croak(aTHX_ usage);
+        Perl_croak(aTHX_ "%s", usage);
     }
 
     SP -= items;
@@ -156,7 +156,7 @@ MP_STATIC XS(MPXS_modperl_spawn_proc_pro
                 av_items = len+1;
             }
             else {
-                Perl_croak(aTHX_ usage);
+                Perl_croak(aTHX_ "%s", usage);
             }
         }
 



Mime
View raw message