diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-03-16 03:09:02 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-03-16 03:09:02 +0100 |
commit | fc6da921ad3bcb251aa317376e81701700e925c9 (patch) | |
tree | 560871390bf3c4d25b57dbb878186aeb55013d3b /udevtrigger.c | |
parent | 043c6f6d4a97ab3a4aeea8cca16c1cc754b0e5ee (diff) |
store devpath with the usual leading slash
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); |