summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2008-05-15 17:31:19 +0200
committerH.Merijn Brand <h.m.brand@xs4all.nl>2008-05-15 13:48:38 +0000
commit1e968d83d8ff249abd1f06a7f900eea6b8c3fc51 (patch)
tree38025fd2384c262b0e68135ed88694623c441a63 /doop.c
parent839c1407d250d7c1cabbabe92d598c29d94077e8 (diff)
downloadperl-1e968d83d8ff249abd1f06a7f900eea6b8c3fc51.tar.gz
Re: [PATCH] Double magic with chop
From: "Vincent Pit" <perl@profvince.com> Message-ID: <32964.147.210.17.175.1210858279.squirrel@147.210.17.175> p4raw-id: //depot/perl@33831
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doop.c b/doop.c
index 8bd7c0f414..8bff60aa0a 100644
--- a/doop.c
+++ b/doop.c
@@ -1033,7 +1033,7 @@ Perl_do_chop(pTHX_ register SV *astr, register SV *sv)
s = SvPV(sv, len);
if (len && !SvPOK(sv))
- s = SvPV_force(sv, len);
+ s = SvPV_force_nomg(sv, len);
if (DO_UTF8(sv)) {
if (s && len) {
char * const send = s + len;