diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-20 17:57:52 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-05-20 17:57:52 +0200 |
commit | 065db052211d3bf08d9b0f698a79a8798faf11d2 (patch) | |
tree | 970ac911636e2711c99ab050a7fd341e95ea08a9 /udev/test-udev.c | |
parent | f58a9099bb2b18f3f683615324a4382b95446305 (diff) |
use more efficient string copying
Diffstat (limited to 'udev/test-udev.c')
-rw-r--r-- | udev/test-udev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/udev/test-udev.c b/udev/test-udev.c index 6ec91c174a..c6b8bf573b 100644 --- a/udev/test-udev.c +++ b/udev/test-udev.c @@ -83,8 +83,7 @@ int main(int argc, char *argv[]) rules = udev_rules_new(udev, 1); - util_strlcpy(syspath, udev_get_sys_path(udev), sizeof(syspath)); - util_strlcat(syspath, devpath, sizeof(syspath)); + util_strscpyl(syspath, sizeof(syspath), udev_get_sys_path(udev), devpath, NULL); dev = udev_device_new_from_syspath(udev, syspath); if (dev == NULL) { info(udev, "unknown device '%s'\n", devpath); |