summaryrefslogtreecommitdiff
path: root/ext/SDBM_File
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-22 17:00:24 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-22 17:00:24 +0000
commitbfd025d94e67a140ec0eeee79dfcef213d537327 (patch)
tree30474f4613349a3cd9ae40f5ed51ab0628239375 /ext/SDBM_File
parentd3f5e39945c1adca90422be3853d860ba9478c11 (diff)
downloadperl-bfd025d94e67a140ec0eeee79dfcef213d537327.tar.gz
Exterminate PL_na! Exterminate! Exterminate! Exterminate!
p4raw-id: //depot/perl@32704
Diffstat (limited to 'ext/SDBM_File')
-rw-r--r--ext/SDBM_File/typemap14
1 files changed, 9 insertions, 5 deletions
diff --git a/ext/SDBM_File/typemap b/ext/SDBM_File/typemap
index c88725bf75..a06ce81aad 100644
--- a/ext/SDBM_File/typemap
+++ b/ext/SDBM_File/typemap
@@ -15,14 +15,18 @@ FATALFUNC T_OPAQUEPTR
INPUT
T_DATUM_K
- DBM_ckFilter($arg, filter_store_key, \"filter_store_key\");
- $var.dptr = SvPVbyte($arg, PL_na);
- $var.dsize = (int)PL_na;
+ {
+ STRLEN len;
+ DBM_ckFilter($arg, filter_store_key, \"filter_store_key\");
+ $var.dptr = SvPVbyte($arg, len);
+ $var.dsize = (int)len;
+ }
T_DATUM_V
DBM_ckFilter($arg, filter_store_value, \"filter_store_value\");
if (SvOK($arg)) {
- $var.dptr = SvPVbyte($arg, PL_na);
- $var.dsize = (int)PL_na;
+ STRLEN len;
+ $var.dptr = SvPVbyte($arg, len);
+ $var.dsize = (int)len;
}
else {
$var.dptr = \"\";