Comment 4 for bug 482675

Revision history for this message
martin_jacobs (martin-jacobs) wrote :

My fix in Mode9.cpp needs a change, sorry. Correct version is this one:

        offset = 0;

        if (seeded)
        {
            sptr--;
            nptr--;
            /* find a difference between the seed row and this row. */
            while (*++sptr == *++nptr)
            {
                if (++offset < size)
                {
                    /* reached end of buffer */
                    sptr++;
                    nptr++;
                    break;
                }
            }
            /* sptr and nptr point behind last identical char/byte */
        }

I'll add patches for both changes.