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 --- extras/edd_id/edd_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/edd_id/edd_id.c') diff --git a/extras/edd_id/edd_id.c b/extras/edd_id/edd_id.c index 4154387cb6..9e9667fc62 100644 --- a/extras/edd_id/edd_id.c +++ b/extras/edd_id/edd_id.c @@ -157,7 +157,7 @@ int main(int argc, char *argv[]) if (disk_id == sysfs_id) { if (match[0] == '\0') { /* store id */ - util_strlcpy(match, dent->d_name, sizeof(match)); + util_strscpy(match, sizeof(match), dent->d_name); } else { /* error, same signature for another device */ info(udev, "'%s' does not have a unique signature\n", node); -- cgit v1.2.3-54-g00ecf