summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-09-09 00:53:43 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-09-09 00:53:43 -0700
commit74622586a4d6f6d69b551f89ec40e76e36ceb464 (patch)
tree146a15d500689de0e2549025e33e74907449f639
parenteaaaaa32882752f15fc0db1c73a1adbe34b49642 (diff)
downloadperl-74622586a4d6f6d69b551f89ec40e76e36ceb464.tar.gz
perlio.c: misuse of SvPV_nolen_const
SvPV_nolen_const takes only one argument and does not return a length.
-rw-r--r--perlio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index c2cc3197ce..cf29586e1c 100644
--- a/perlio.c
+++ b/perlio.c
@@ -313,7 +313,7 @@ PerlIO_openn(pTHX_ const char *layers, const char *mode, int fd,
return PerlIO_tmpfile();
else {
STRLEN len;
- const char *name = SvPV_nolen_const(*args, len);
+ const char *name = SvPV_const(*args, len);
if (!IS_SAFE_PATHNAME(name, len, "open"))
return NULL;