summaryrefslogtreecommitdiff
path: root/src/udev/udev-builtin-net_id.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-04-01 16:41:41 +0200
committerTom Gundersen <teg@jklm.no>2015-04-01 22:56:26 +0200
commit16f948cb208f1db9a1665f07ac9b22e416dc19d4 (patch)
tree98857bb9b3e3da4a4cd4d35cf386332885ac7590 /src/udev/udev-builtin-net_id.c
parente6ac88ddf213c431c678cfdac689577abbc14b28 (diff)
udev: net_id - fix copy-paste error
In case pci_slot overflows we were truncating pci_path instead.
Diffstat (limited to 'src/udev/udev-builtin-net_id.c')
-rw-r--r--src/udev/udev-builtin-net_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
index 37ff1b8008..71f3a5970f 100644
--- a/src/udev/udev-builtin-net_id.c
+++ b/src/udev/udev-builtin-net_id.c
@@ -248,7 +248,7 @@ static int dev_pci_slot(struct udev_device *dev, struct netnames *names) {
if (dev_port > 0)
l = strpcpyf(&s, l, "d%d", dev_port);
if (l == 0)
- names->pci_path[0] = '\0';
+ names->pci_slot[0] = '\0';
}
out:
udev_device_unref(pci);