svn commit: r323692 - in head/sys/compat: linsysfs linux

Hans Petter Selasky hps at selasky.org
Mon Sep 18 10:40:48 UTC 2017


On 09/18/17 01:40, Conrad Meyer wrote:
> +				sprintf(chardevname, "226:%d",
> +				    device_get_unit(dev));

Hi,

Try to use snprintf(). Define the chardevname size as a macro, or just 
allocate it on the stack if it is < 32 bytes.

--HPS


More information about the svn-src-all mailing list