summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-11-18 05:39:36 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-11-18 05:39:36 +0000
commit0f88cd613cef5fb2b8941444a42d0d293df270c7 (patch)
tree03485df374d8e39df90d5cfbb0127fe9430d6a53 /pp_ctl.c
parent9a1f6854bd401b9b6526f01bc0d06d14aee61dfd (diff)
downloadperl-0f88cd613cef5fb2b8941444a42d0d293df270c7.tar.gz
tweak change#2245 to skip previous message if any
p4raw-link: @2245 on //depot/perl: a99e4ac224ca891463a7704e48b83906ece3bb7c p4raw-id: //depot/perl@2248
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index e4b8a739fa..e081fa554d 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1253,8 +1253,10 @@ die_where(char *message)
SvGROW(err, SvCUR(err)+sizeof(prefix)+klen);
sv_catpvn(err, prefix, sizeof(prefix)-1);
sv_catpvn(err, message, klen);
- if (ckWARN(WARN_UNSAFE))
- warner(WARN_UNSAFE, SvPVX(err));
+ if (ckWARN(WARN_UNSAFE)) {
+ STRLEN start = SvCUR(err)-klen-sizeof(prefix)+1;
+ warner(WARN_UNSAFE, SvPVX(err)+start);
+ }
}
sv_inc(*svp);
}