Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbd536bf authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds
Browse files

sis: strcpy() => strlcpy()



These are different size buffers (40 chars vs 16), we may as well be
cautious.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fbd65e0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1845,7 +1845,7 @@ sisfb_get_fix(struct fb_fix_screeninfo *fix, int con, struct fb_info *info)


	memset(fix, 0, sizeof(struct fb_fix_screeninfo));
	memset(fix, 0, sizeof(struct fb_fix_screeninfo));


	strcpy(fix->id, ivideo->myid);
	strlcpy(fix->id, ivideo->myid, sizeof(fix->id));


	mutex_lock(&info->mm_lock);
	mutex_lock(&info->mm_lock);
	fix->smem_start  = ivideo->video_base + ivideo->video_offset;
	fix->smem_start  = ivideo->video_base + ivideo->video_offset;