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
Signed-off-by: default avatarDan Carpenter <>
Cc: Thomas Winischhofer <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent fbd65e0e
......@@ -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));
strcpy(fix->id, ivideo->myid);
strlcpy(fix->id, ivideo->myid, sizeof(fix->id));
fix->smem_start = ivideo->video_base + ivideo->video_offset;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment