summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-device-db-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/lib/libudev-device-db-write.c')
-rw-r--r--udev/lib/libudev-device-db-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/lib/libudev-device-db-write.c b/udev/lib/libudev-device-db-write.c
index d9d97d45a0..a8e66f7884 100644
--- a/udev/lib/libudev-device-db-write.c
+++ b/udev/lib/libudev-device-db-write.c
@@ -27,7 +27,7 @@ static size_t devpath_to_db_path(struct udev *udev, const char *devpath, char *f
s = filename;
l = util_strpcpyl(&s, len, udev_get_dev_path(udev), "/.udev/db/", NULL);
- return util_path_encode(devpath, filename, l);
+ return util_path_encode(devpath, s, l);
}
int udev_device_update_db(struct udev_device *udev_device)