String.Buffer broken
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1290
Reported by Jonas Wallden jonasw@roxen.com
The buffer gets corrupted, apparently shifted four bytes, since both the start and end is incorrect:
Pike v7.2 release 12 running Hilfe v2.0 (Incremental Pike Frontend)
> object b = String.Buffer();
Result: Buffer(0 /* 0 */)
> b->add("1234567890");
Result: 34
> for (int i = 0; i < 5; i++) b->add("abcdefg");
Ok.
> b->get();
Result: "\234\214$\b1234567890abcdefgabcdefgabcdefgabcdefgabc"