Re: [PATCH 2/5] Construct one fakephp slot per pci slot

Linas Vepstas
2007-11-13T19:48:28Z

On Mon, Nov 12, 2007 at 05:13:36PM -0700, Alex Chiang wrote:
> + slot->name = kmalloc(8, GFP_KERNEL);
> + sprintf(slot->name, "fake%d", count++);

Please use snprintf to avoid buffer overruns!

--linas