ExtUtils::ParseXS: Don't put null chars into generated source
authorStephen Bennett <sbp@exherbo.com>
Mon, 29 Aug 2011 17:44:50 +0000 (19:44 +0200)
committerSteffen Mueller <smueller@cpan.org>
Mon, 29 Aug 2011 17:45:42 +0000 (19:45 +0200)
... file when -except is used; write the '\0' escape sequence
properly instead.

dist/ExtUtils-ParseXS/Changes
dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm

index c47ac64..f4de8ae 100644 (file)
@@ -1,5 +1,11 @@
 Revision history for Perl extension ExtUtils::ParseXS.
 
+3.04_02 - ...
+
+  - Don't put null characters into the generated source
+    file when -except is used; write the '\0' escape sequence
+    properly instead. [Stephen Bennett]
+
 3.04_01 - Sun Aug 28 17:50:00 CET 2011
 
   - The XSUB.h changes to make XS(name) use XS_INTERNAL(name)
index 08d6ac1..fe5874a 100644 (file)
@@ -522,7 +522,7 @@ EOF
 
     print Q(<<"EOF") if $self->{except};
 #    char errbuf[1024];
-#    *errbuf = '\0';
+#    *errbuf = '\\0';
 EOF
 
     if($self->{cond}) {