diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-10-25 11:29:20 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-10-25 11:29:20 +0200 |
commit | 1a9a61f9cc075a5063af7e9c5a2022094243047b (patch) | |
tree | 1b05e3d49fa9a58b6dac4a5c109f161df6a72153 /src/udev | |
parent | network: use timestamp_is_set() in one more place (diff) | |
download | systemd-1a9a61f9cc075a5063af7e9c5a2022094243047b.tar.xz systemd-1a9a61f9cc075a5063af7e9c5a2022094243047b.zip |
udev: strdupa() → strdupa_safe()
Diffstat (limited to 'src/udev')
-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 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), |