On 03/01/2016 03:08 PM, Seymour, Shane M wrote: > in https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt > > it says: > > - show() must not use snprintf() when formatting the value to be > returned to user space. If you can guarantee that an overflow > will never happen you can use sprintf() otherwise you must use > scnprintf(). > So? I _do_ know the length of the strings I'm going to write into the buffer, so there cannot possibly be an overflow. Unless I've made an error during calculation of the string length, of course. But both functions can only return fixed length strings, so I'm safe here. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@xxxxxxx +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html