From: David van Moolenbroek Date: Thu, 2 Aug 2012 16:53:01 +0000 (+0000) Subject: dec21140A: resolve Coverity warnings X-Git-Tag: v3.2.1~411 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=ab6e62a523a9c491be597f2e444b7789d257b43a;p=minix.git dec21140A: resolve Coverity warnings --- diff --git a/drivers/dec21140A/dec21140A.c b/drivers/dec21140A/dec21140A.c index 608b1742c..c6edcf8ce 100644 --- a/drivers/dec21140A/dec21140A.c +++ b/drivers/dec21140A/dec21140A.c @@ -408,7 +408,7 @@ static void de_update_conf(dpeth_t * dep) char ec_key[16]; long val; - strcpy(ec_key, "DEETH0"); + strlcpy(ec_key, "DEETH0", sizeof(ec_key)); ec_key[5] += de_instance; dep->de_mode = DEM_ENABLED; @@ -559,7 +559,7 @@ static void de_conf_addr(dpeth_t * dep) int ix; long val; - strcpy(ea_key, "DEETH0_EA"); + strlcpy(ea_key, "DEETH0_EA", sizeof(ea_key)); ea_key[5] += de_instance; for (ix = 0; ix < SA_ADDR_LEN; ix++) {