]> granicus.if.org Git - libexpat/commitdiff
I'm not really sure why this version of the file is still here, but
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Fri, 27 Jul 2001 13:59:00 +0000 (13:59 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Fri, 27 Jul 2001 13:59:00 +0000 (13:59 +0000)
migrate the UTF-8 BOM fix here as well, so this does not get too far
out of sync.

expat/xmltok/xmltok.c

index ac4d939f15ae054ae773faef47807c0f1507642b..0c518894bd673d879a5b9811acb7ad0c92781c07 100755 (executable)
@@ -1489,6 +1489,7 @@ int initScan(const ENCODING **encodingTable,
       if (ptr + 2 == end)
        return XML_TOK_PARTIAL;
       if ((unsigned char)ptr[2] == 0xBF) {
+       *nextTokPtr = ptr + 3;
        *encPtr = encodingTable[UTF_8_ENC];
        return XML_TOK_BOM;
       }