From: Richard Jones Date: Thu, 25 Mar 2010 19:44:22 +0000 (+0000) Subject: perl: use newSVpvn for variable length strings. X-Git-Tag: 1.0.88~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=57c143da4d9b9e75e6da83ef3b8e8c0979c6f0f6;hp=57c143da4d9b9e75e6da83ef3b8e8c0979c6f0f6;p=libguestfs.git perl: use newSVpvn for variable length strings. 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. ---