James, > But additionally this is a common pattern in SCSI: using strncpy to > zero terminate fields that may be unterminated in the exchange > protocol so we can send them to sysfs or otherwise treat them as > strings. Yep, it's such a common pattern. I frankly don't know why our string handling deals so poorly with fixed-length strings. -- Martin K. Petersen Oracle Linux Engineering