int ix;
long val;
- strcpy(ea_key, "DPETH0_EA");
+ strlcpy(ea_key, "DPETH0_EA", sizeof(ea_key));
ea_key[5] += de_instance;
for (ix = 0; ix < SA_ADDR_LEN; ix++) {
char ec_key[16];
long val;
- strcpy(ec_key, "DPETH0");
+ strlcpy(ec_key, "DPETH0", sizeof(ec_key));
ec_key[5] += de_instance;
dep->de_mode = DEM_SINK;
* automatically. Return the IRQ line number when an interrupt occurs.
*/
dep->de_hook = dep->de_irq;
- sys_irqsetpolicy(dep->de_irq, 0 /*IRQ_REENABLE*/, &dep->de_hook);
+ if (sys_irqsetpolicy(dep->de_irq, 0 /*IRQ_REENABLE*/, &dep->de_hook) != OK)
+ panic("unable to set IRQ policy");
dep->de_int_pending = FALSE;
sys_irqenable(&dep->de_hook);
confnr = MIN(de_instance, DP_CONF_NR-1);
dcp = &dp_conf[confnr];
- strcpy(dep->de_name, DevName);
+ strlcpy(dep->de_name, DevName, sizeof(dep->de_name));
dep->de_name[4] = '0' + de_instance;
if (dep->de_mode == DEM_DISABLED) {