From 4aec9db57135aae55932122bbeb1d000500f0c0f Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Mon, 13 Aug 2012 16:33:58 +0000 Subject: [PATCH] dp8390: resolve Coverity warnings (encore) --- drivers/dp8390/dp8390.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dp8390/dp8390.c b/drivers/dp8390/dp8390.c index f347c9fbb..a7ea8593e 100644 --- a/drivers/dp8390/dp8390.c +++ b/drivers/dp8390/dp8390.c @@ -1640,7 +1640,7 @@ dp_conf_t *dcp; } #endif - strcpy(eckey, "DPETH0"); + strlcpy(eckey, "DPETH0", sizeof(eckey)); eckey[5] += de_instance; /* Get the default settings and modify them from the environment. */