On Wednesday 03 December 2008, Ferenc Wagner wrote: > Don't you risk overflowing the buffer by not using a union of the two > structs? Or are both guarranteed to never grow above 256 bytes? The original code looks to have included a "paranoia" field in struct u of 3 times the size of serial_struct, probably for that reason. I'd think using 512 or even 1024 as buffer size may indeed be safer. Jérémy?