From: David van Moolenbroek Date: Mon, 13 Aug 2012 16:33:58 +0000 (+0000) Subject: dp8390: resolve Coverity warnings (encore) X-Git-Tag: v3.2.1~374 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/CHANGES?a=commitdiff_plain;h=4aec9db57135aae55932122bbeb1d000500f0c0f;p=minix.git dp8390: resolve Coverity warnings (encore) --- 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. */