diff options
Diffstat (limited to 'udevtrigger.c')
-rw-r--r-- | udevtrigger.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/udevtrigger.c b/udevtrigger.c index 2bdd0c8d07..7577c5f15f 100644 --- a/udevtrigger.c +++ b/udevtrigger.c @@ -412,8 +412,7 @@ static void scan_failed(void) if (dent->d_name[0] == '.') continue; - strlcpy(device, sysfs_path, sizeof(device)); - start = strlcat(device, "/", sizeof(device)); + start = strlcpy(device, sysfs_path, sizeof(device)); strlcat(device, dent->d_name, sizeof(device)); path_decode(&device[start]); device_list_insert(device); |