[ 16/54] sysfs: sysfs_pathname/sysfs_add_one: Use strlcat() instead of strcat()

2012-10-29 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 66081a72517a131430dcf986775f3268aafcb546 upstream. The warning check for duplicate sysfs entries can cause a buffer overflow when printing the warning, as strcat()

[ 16/54] sysfs: sysfs_pathname/sysfs_add_one: Use strlcat() instead of strcat()

2012-10-29 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven ge...@linux-m68k.org commit 66081a72517a131430dcf986775f3268aafcb546 upstream. The warning check for duplicate sysfs entries can cause a buffer overflow when printing the