diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-04-07 22:22:22 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-04-08 01:38:47 +0900 |
commit | cb8c948738e65a8c33697ee83efdacd1aee88311 (patch) | |
tree | 6195c1a813355ce774dd56bfb8e1333776a9bca2 /src/udev/udev-builtin-net_id.c | |
parent | 5a6e56ec1703e84f7860152e483da816ca4b1cbb (diff) | |
download | systemd-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.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 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; } |