summaryrefslogtreecommitdiff
path: root/udev_db.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-08-13 00:18:44 +0200
committerKay Sievers <kay.sievers@suse.de>2005-08-13 00:18:44 +0200
commit853ccc433c4d45c3e1da4336f87b458ed10311ca (patch)
tree383ab125c708528adc2b3eef110915552189f984 /udev_db.c
parentd2e8d41b9c7bacd8169c4cb1d15b7bc95445d34b (diff)
fix more compiler warnings ...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_db.c')
-rw-r--r--udev_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_db.c b/udev_db.c
index f9adf5c631..ac5a7e6d65 100644
--- a/udev_db.c
+++ b/udev_db.c
@@ -262,7 +262,7 @@ int udev_db_search_name(char *devpath, size_t len, const char *name)
nodename[count-2] = '\0';
dbg("compare '%s' '%s'", nodename, name);
if (strcmp(nodename, name) == 0) {
- memcpy(devpath, &bufline[2], count-2);
+ strlcpy(devpath, nodename, len);
devpath[count-2] = '\0';
file_unmap(buf, bufsize);
closedir(dir);