diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-11-18 05:39:36 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-11-18 05:39:36 +0000 |
commit | 0f88cd613cef5fb2b8941444a42d0d293df270c7 (patch) | |
tree | 03485df374d8e39df90d5cfbb0127fe9430d6a53 /pp_ctl.c | |
parent | 9a1f6854bd401b9b6526f01bc0d06d14aee61dfd (diff) | |
download | perl-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); } |