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

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
...@@ -5830,7 +5830,7 @@ static int sisfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -5830,7 +5830,7 @@ static int sisfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
ivideo->cardnumber++; ivideo->cardnumber++;
} }
strncpy(ivideo->myid, chipinfo->chip_name, 30); strlcpy(ivideo->myid, chipinfo->chip_name, sizeof(ivideo->myid));
ivideo->warncount = 0; ivideo->warncount = 0;
ivideo->chip_id = pdev->device; ivideo->chip_id = pdev->device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment