diff options
author | Tom Gundersen <teg@jklm.no> | 2015-04-01 16:41:41 +0200 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-04-12 11:41:21 -0400 |
commit | 9315261b197bf601b984c44faafa4eeed9472fbe (patch) | |
tree | 1f2b358a2eb3368f818988baf06f5129c844b2de | |
parent | 59e0bf6c1fa5629d01e0793dd4457936d6e9019b (diff) |
udev: net_id - fix copy-paste error
In case pci_slot overflows we were truncating pci_path instead.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r-- | src/udev/udev-builtin-net_id.c | 2 |
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); |