From 1a9a61f9cc075a5063af7e9c5a2022094243047b Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 25 Oct 2023 11:29:20 +0200 Subject: [PATCH] =?UTF-8?q?udev:=20strdupa()=20=E2=86=92=20strdupa=5Fsafe(?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 d88d4f7dd5e..91b40088f49 100644 --- a/src/udev/udev-builtin-net_id.c +++ b/src/udev/udev-builtin-net_id.c @@ -921,7 +921,7 @@ static int get_usb_specifier(sd_device *dev, char **ret) { return log_device_debug_errno(dev, SYNTHETIC_ERRNO(EINVAL), "sysname \"%s\" does not have '-' in the expected place.", sysname); - ports = strdupa(s + 1); + ports = strdupa_safe(s + 1); s = strchr(ports, ':'); if (!s) return log_device_debug_errno(dev, SYNTHETIC_ERRNO(EINVAL),