Mark J. Taylor wrote:

> +               dev = malloc(strlen(vnp->dev)+6);
> +               (void)sprintf(dev, "/dev/%s", vnp->dev);

You should be checking that malloc() doesn't return NULL, before trying
to write into the allocated space.

-- 
Ben Smithurst            | PGP: 0x99392F7D
b...@scientia.demon.co.uk |   key available from keyservers and
                         |   ben+...@scientia.demon.co.uk


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to