From 54c3e17a146f4b68aac839f8d38028369bed496b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 23 Jul 2007 17:25:18 +0000 Subject: [PATCH] fixed amb664 - BOM markings were not properly ignored --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401149 --- core/TextParsers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/TextParsers.cpp b/core/TextParsers.cpp index b7e48684..daedf53e 100644 --- a/core/TextParsers.cpp +++ b/core/TextParsers.cpp @@ -295,7 +295,9 @@ SMCParseError TextParsers::ParseStream_SMC(void *stream, in_buf[1] == (char)0xBB && in_buf[2] == (char)0xBF) { - parse_point = &in_buf[3]; + /* Move EVERYTHING down :\ */ + memmove(in_buf, &in_buf[3], read - 3); + read -= 3; } if (reparse_point)