summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorluokai <l18674732394@163.com>2021-06-15 11:27:29 +0800
committerluokai <l18674732394@163.com>2021-06-15 11:27:29 +0800
commit87447a0ee97379afd3af7713060b7f8473be5529 (patch)
tree4904a67e39e8395fcfc88ed4ba8ac9af77132cf8 /udev
parent9cd6f3c5b8461ff813c9a747ea6680e7d7f4ccbd (diff)
downloadlibinput-87447a0ee97379afd3af7713060b7f8473be5529.tar.gz
using secure functions safe_strdup
Signed-off-by: luokai <l18674732394.com>
Diffstat (limited to 'udev')
-rw-r--r--udev/libinput-device-group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/libinput-device-group.c b/udev/libinput-device-group.c
index df06803d..0622ba33 100644
--- a/udev/libinput-device-group.c
+++ b/udev/libinput-device-group.c
@@ -139,7 +139,7 @@ wacom_handle_ekr(struct udev_device *device,
best_dist = dist;
free(*phys_attr);
- *phys_attr = strdup(phys);
+ *phys_attr = safe_strdup(phys);
}
}