Ben Smithurst wrote in list.freebsd-hackers:
> 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.
I'd suggest to use asprintf().
Regards
Oliver
--
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:[EMAIL PROTECTED])
"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
(Terry Pratchett)
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message