perl: use newSVpvn for variable length strings.
authorRichard Jones <rjones@redhat.com>
Thu, 25 Mar 2010 19:44:22 +0000 (19:44 +0000)
committerRichard Jones <rjones@redhat.com>
Thu, 25 Mar 2010 19:44:22 +0000 (19:44 +0000)
Previously we used newSVpv (str, len), but if len == 0 then
this means Perl tries to calculate the string length using
strlen(3).  This is not desirable when we know the length, in
which case we should use newSVpvn instead.


No differences found