summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1999-05-07 21:18:42 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1999-05-07 21:18:42 +0000
commit7c1e0849686a4ea069f6fa2a095a70c337e62ace (patch)
tree2834201cef1cf794e12692151dc8ca114e097159 /util.c
parent28a8573f881e85e383be4ba96e6a3626f81ca78a (diff)
downloadperl-7c1e0849686a4ea069f6fa2a095a70c337e62ace.tar.gz
Correct SvLEN vs SvCUR which leads to odd "chunk" vs "line" in mess().
p4raw-id: //depot/perl@3325
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index f39ccd1dcb..2794364d88 100644
--- a/util.c
+++ b/util.c
@@ -1227,7 +1227,7 @@ mess(const char *pat, va_list *args)
GvSV(PL_curcop->cop_filegv), (long)PL_curcop->cop_line);
if (GvIO(PL_last_in_gv) && IoLINES(GvIOp(PL_last_in_gv))) {
bool line_mode = (RsSIMPLE(PL_rs) &&
- SvLEN(PL_rs) == 1 && *SvPVX(PL_rs) == '\n');
+ SvCUR(PL_rs) == 1 && *SvPVX(PL_rs) == '\n');
sv_catpvf(sv, ", <%s> %s %ld",
PL_last_in_gv == PL_argvgv ? "" : GvNAME(PL_last_in_gv),
line_mode ? "line" : "chunk",