Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b232e94d authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Tomi Valkeinen
Browse files

video: fbdev: sis: sis_main.c: Cleaning up missing null-terminate in conjunction with strncpy



Replacing strncpy with strlcpy to avoid strings that lacks null terminate.

Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 66b33099
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5830,7 +5830,7 @@ static int sisfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
			ivideo->cardnumber++;
	}

	strncpy(ivideo->myid, chipinfo->chip_name, 30);
	strlcpy(ivideo->myid, chipinfo->chip_name, sizeof(ivideo->myid));

	ivideo->warncount = 0;
	ivideo->chip_id = pdev->device;