[EMAIL PROTECTED] wrote:
> 
> [EMAIL PROTECTED] wrote:
> > So trying to read-io a length that is a multiple of 16 (the same problem
> > happens when sending 32 bytes) causes read-io to miss the last
> > character.
> 
> Brilliant! Have you reported this bug?

Not yet.

> Btw, your fix suggests that it's got more to do with the buffer the string
> is stored in than read-io itself. It seems likely that Rebol allocates
> strings with a length of 16 even bytes, even if the string actually is a
> few bytes shorter (for easier memory management and cache efficiency
> reasons). And when you read 16 bytes exactly, you need another byte to
> terminate -> it doesn't fit. And unlike most operations, read-io doesn't
> automatically expand the string.

Well done Sherlock, I think you might have cracked this puzzle :)

Julian Kinraid

Reply via email to