summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-07-23 13:17:48 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-07-23 13:17:48 +0000
commitaed58286850fb82fabacfa04fc2b91770f8f066f (patch)
treea868d731efd797deed1a46e4ec39d4c16c047604 /toke.c
parente294cc5d7355a434d6b698c777674e1b7d4d4583 (diff)
downloadperl-aed58286850fb82fabacfa04fc2b91770f8f066f.tar.gz
Revert part of last change, that was causing utf8 test failures
p4raw-id: //depot/perl@28608
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 2c6d8be40b..7bed30b696 100644
--- a/toke.c
+++ b/toke.c
@@ -12422,7 +12422,7 @@ S_swallow_bom(pTHX_ U8 *s)
filter_add(utf16rev_textfilter, NULL);
Newx(news, (PL_bufend - (char*)s) * 3 / 2 + 1, U8);
utf16_to_utf8_reversed(s, news,
- PL_bufend - (char*)s,
+ PL_bufend - (char*)s - 1,
&newlen);
sv_setpvn(PL_linestr, (const char*)news, newlen);
#ifdef PERL_MAD