diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-08-13 00:18:44 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-08-13 00:18:44 +0200 |
commit | 853ccc433c4d45c3e1da4336f87b458ed10311ca (patch) | |
tree | 383ab125c708528adc2b3eef110915552189f984 /udev_db.c | |
parent | d2e8d41b9c7bacd8169c4cb1d15b7bc95445d34b (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |