summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-08-08 02:21:55 +0200
committerKay Sievers <kay.sievers@suse.de>2005-08-08 02:21:55 +0200
commit13d11705bf0117365afc3f9210f4d568a2baa69c (patch)
treeed8d587b482e42072f51190bc8f8edc13e87dba5 /udev.c
parent738428b4499211247dafa394805ecaa2cb313f03 (diff)
switch some strlcpy's to memcpy
strlcpy counts the sourec string lengt and is therefore not suitable to copy a defined length of characters from one string to another. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/udev.c b/udev.c
index 2a6e1efc99..6a0beda1c2 100644
--- a/udev.c
+++ b/udev.c
@@ -131,6 +131,7 @@ int main(int argc, char *argv[], char *envp[])
}
}
+ udev_rules_close(&rules);
udev_cleanup_device(&udev);
exit: