David Brownell <[EMAIL PROTECTED]> writes:

> > +   /* stuff we want to pass to /sbin/hotplug */
> > +   envp[i++] = scratch;
> > +   scratch += sprintf (scratch, "PCI_CLASS=%04X", pdev->class) + 1;
> > +
> > +   envp[i++] = scratch;
> > +   scratch += sprintf (scratch, "PCI_ID=%04X:%04X",
> > +                       pdev->vendor, pdev->device) + 1;
> 
> And so forth.  Use "snprintf" and prevent overrunning those buffers...

Hmm? An %04X format is perfectly bounded.

-Andi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to