> After writing the above, the voices in my head started clamoring about > this "space allocated" vs "bytes buffered" thing, which I was obviously > aware of, but hadn't thought about as an issue. > > And you know what? The thing about "space allocated" vs "bytes buffered" > is that writing _one_ byte (the '\r') can cause a lot more than one byte > to be allocated for a buffer (we do minimum 256-byte buffers) Doh yes thats an utterly dumb bug on my part - we do have to work on chars. 100% agree with the diagnosis -- To unsubscribe from this list: send the line "unsubscribe kernel-testers" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html