summaryrefslogtreecommitdiff
path: root/src/udev/udev-builtin-net_id.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-04-07 22:22:22 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-04-08 01:38:47 +0900
commitcb8c948738e65a8c33697ee83efdacd1aee88311 (patch)
tree6195c1a813355ce774dd56bfb8e1333776a9bca2 /src/udev/udev-builtin-net_id.c
parent5a6e56ec1703e84f7860152e483da816ca4b1cbb (diff)
downloadsystemd-cb8c948738e65a8c33697ee83efdacd1aee88311.tar.gz
udev: use snprintf_ok()
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 f84c2669a8..088bfe38d9 100644
--- a/src/udev/udev-builtin-net_id.c
+++ b/src/udev/udev-builtin-net_id.c
@@ -999,7 +999,7 @@ static int builtin_net_id(sd_device *dev, int argc, char *argv[], bool test) {
udev_builtin_add_property(dev, test, "ID_NET_NAME_PATH", str);
if (names.pci_slot[0] &&
- snprintf(str, sizeof str, "%s%s%s", prefix, names.pci_slot, names.bcma_core))
+ snprintf_ok(str, sizeof str, "%s%s%s", prefix, names.pci_slot, names.bcma_core))
udev_builtin_add_property(dev, test, "ID_NET_NAME_SLOT", str);
return 0;
}