media: pci/cx88: Replace strlcpy() with strscpy()

This commit is contained in:
CrazyCat
2024-03-10 20:58:29 +02:00
parent b3d6de4067
commit 282b6872f8

View File

@@ -1556,7 +1556,7 @@ static int dvb_register(struct cx8802_dev *dev)
if (dvb_attach(av201x_attach, fe0->dvb.frontend, &tbs8922_av201x_cfg, if (dvb_attach(av201x_attach, fe0->dvb.frontend, &tbs8922_av201x_cfg,
tas2101_get_i2c_adapter(fe0->dvb.frontend, 2)) == NULL) tas2101_get_i2c_adapter(fe0->dvb.frontend, 2)) == NULL)
goto frontend_detach; goto frontend_detach;
strlcpy(fe0->dvb.frontend->ops.info.name,core->board.name,52); strscpy(fe0->dvb.frontend->ops.info.name,core->board.name,52);
break; break;
case CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII: case CX88_BOARD_TERRATEC_CINERGY_HT_PCI_MKII:
fe0->dvb.frontend = dvb_attach(zl10353_attach, fe0->dvb.frontend = dvb_attach(zl10353_attach,