dec21140A: resolve Coverity warnings

This commit is contained in:
David van Moolenbroek 2012-08-02 16:53:01 +00:00
parent 19ffad7692
commit ab6e62a523

View file

@ -408,7 +408,7 @@ static void de_update_conf(dpeth_t * dep)
char ec_key[16]; char ec_key[16];
long val; long val;
strcpy(ec_key, "DEETH0"); strlcpy(ec_key, "DEETH0", sizeof(ec_key));
ec_key[5] += de_instance; ec_key[5] += de_instance;
dep->de_mode = DEM_ENABLED; dep->de_mode = DEM_ENABLED;
@ -559,7 +559,7 @@ static void de_conf_addr(dpeth_t * dep)
int ix; int ix;
long val; long val;
strcpy(ea_key, "DEETH0_EA"); strlcpy(ea_key, "DEETH0_EA", sizeof(ea_key));
ea_key[5] += de_instance; ea_key[5] += de_instance;
for (ix = 0; ix < SA_ADDR_LEN; ix++) { for (ix = 0; ix < SA_ADDR_LEN; ix++) {