Skip to contentSkip to conversation

Fix incorrect usage of strncat in aty128_init(); drivers/video/aty/aty128fb.c

PATCH New Roel Kluin 1 participant 1 message Nov 5, 2007 Framebuffer layer

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 Fix incorrect usage of strncat in aty128_init(); drivers/video/aty/aty128fb.c

Fix incorrect length for strncat by replacing it with strlcat

---

drivers/video/aty/aty128fb.c +1 -1
index cbd3308..27faffd 100644
@@ -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);
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/