Use grub_snprintf in commands/setpci.c

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-01-20 20:54:58 +01:00
parent 5b47ee8044
commit baccdb23a7

View file

@ -118,7 +118,7 @@ grub_setpci_iter (grub_pci_device_t dev, grub_pci_id_t pciid)
if (varname)
{
char buf[sizeof ("XXXXXXXX")];
grub_sprintf (buf, "%x", regval);
grub_snprintf (buf, sizeof (buf), "%x", regval);
grub_env_set (varname, buf);
return 1;
}