OSDN Git Service

Merge tag 'fbdev-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux
[uclinux-h8/linux.git] / drivers / video / fbdev / sis / sis_main.c
index 4f5cf03..e5d11b1 100644 (file)
@@ -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;