Skip to content

Commit

Permalink
drivers/video/aty/aty128fb.c: fix incorrect usage of strncat in aty12…
Browse files Browse the repository at this point in the history
…8_init()

Fix incorrect length for strncat by replacing it with strlcat

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Roel Kluin authored and Linus Torvalds committed Apr 28, 2008
1 parent 9e3f0ca commit af2afd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/aty/aty128fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit af2afd2

Please sign in to comment.