summaryrefslogtreecommitdiffstats
path: root/src/udev
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-10-25 11:29:20 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-10-25 11:29:20 +0200
commit1a9a61f9cc075a5063af7e9c5a2022094243047b (patch)
tree1b05e3d49fa9a58b6dac4a5c109f161df6a72153 /src/udev
parentnetwork: use timestamp_is_set() in one more place (diff)
downloadsystemd-1a9a61f9cc075a5063af7e9c5a2022094243047b.tar.xz
systemd-1a9a61f9cc075a5063af7e9c5a2022094243047b.zip
udev: strdupa() → strdupa_safe()
Diffstat (limited to 'src/udev')
-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 d88d4f7dd5..91b40088f4 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),