From: Roel Kluin <12o3l@tiscali.nl> Date: Mon, 28 Apr 2008 09:15:10 +0000 (-0700) Subject: drivers/video/aty/aty128fb.c: fix incorrect usage of strncat in aty128_init() X-Git-Tag: v2.6.26-rc1~818 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af2afd247f0fae25d66f210fb800fe6a2958366e;p=linux-2.6 drivers/video/aty/aty128fb.c: fix incorrect usage of strncat in aty128_init() Fix incorrect length for strncat by replacing it with strlcat Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c index cbd3308b66..27faffdee1 100644 --- a/drivers/video/aty/aty128fb.c +++ b/drivers/video/aty/aty128fb.c @@ -1885,7 +1885,7 @@ static int __devinit aty128_init(struct pci_dev *pdev, const struct pci_device_i /* range check to make sure */ if (ent->driver_data < ARRAY_SIZE(r128_family)) - strncat(video_card, r128_family[ent->driver_data], sizeof(video_card)); + strlcat(video_card, r128_family[ent->driver_data], sizeof(video_card)); printk(KERN_INFO "aty128fb: %s [chip rev 0x%x] ", video_card, chip_rev);