diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-09-09 00:53:43 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-09-09 00:53:43 -0700 |
commit | 74622586a4d6f6d69b551f89ec40e76e36ceb464 (patch) | |
tree | 146a15d500689de0e2549025e33e74907449f639 | |
parent | eaaaaa32882752f15fc0db1c73a1adbe34b49642 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |