From 065db052211d3bf08d9b0f698a79a8798faf11d2 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 20 May 2009 17:57:52 +0200 Subject: use more efficient string copying --- udev/udevadm-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'udev/udevadm-monitor.c') diff --git a/udev/udevadm-monitor.c b/udev/udevadm-monitor.c index 3f4cb5772d..1f0946114d 100644 --- a/udev/udevadm-monitor.c +++ b/udev/udevadm-monitor.c @@ -107,7 +107,7 @@ int udevadm_monitor(struct udev *udev, int argc, char *argv[]) char subsys[UTIL_NAME_SIZE]; char *devtype; - util_strlcpy(subsys, optarg, sizeof(subsys)); + util_strscpy(subsys, sizeof(subsys), optarg); devtype = strchr(subsys, ':'); if (devtype != NULL) { devtype[0] = '\0'; -- cgit v1.2.3-54-g00ecf