dec21140A: resolve Coverity warnings
This commit is contained in:
parent
19ffad7692
commit
ab6e62a523
1 changed files with 2 additions and 2 deletions
|
@ -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++) {
|
||||||
|
|
Loading…
Reference in a new issue