From cb8c948738e65a8c33697ee83efdacd1aee88311 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 7 Apr 2021 22:22:22 +0900 Subject: [PATCH] udev: use snprintf_ok() --- src/udev/udev-builtin-net_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c index f84c2669a85..088bfe38d9e 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; } -- 2.47.3