]> mj.ucw.cz Git - pciutils.git/commitdiff
Slots: use strcpy instead of sprintf.
authorMartin Mares <mj@ucw.cz>
Sat, 13 Dec 2008 11:42:46 +0000 (12:42 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 13 Dec 2008 11:42:46 +0000 (12:42 +0100)
lib/sysfs.c

index 5949ff1f87b67ab56424caa9b172ae2fbb139622..a204eef4222e166482f758184225c060d38331e8 100644 (file)
@@ -218,7 +218,7 @@ sysfs_fill_slots(struct pci_dev *d)
          if (dom == pd->domain && bus == pd->bus && dev == pd->dev && !pd->phy_slot)
            {
              pd->phy_slot = pci_malloc(a, strlen(entry->d_name) + 1);
-             sprintf(pd->phy_slot, "%s", entry->d_name);
+             strcpy(pd->phy_slot, entry->d_name);
            }
          pd->known_fields |= PCI_FILL_PHYS_SLOT;
        }