projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbd65e0
)
sis: strcpy() => strlcpy()
author
Dan Carpenter
<
[email protected]
>
Mon, 24 May 2010 21:33:53 +0000
(14:33 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 25 May 2010 15:07:08 +0000
(08:07 -0700)
These are different size buffers (40 chars vs 16), we may as well be
cautious.
Signed-off-by: Dan Carpenter <
[email protected]
>
Cc: Thomas Winischhofer <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/sis/sis_main.c
patch
|
blob
|
history
diff --git
a/drivers/video/sis/sis_main.c
b/drivers/video/sis/sis_main.c
index a531a0f7cdf2d7ba27e0f44b8028efa0307d7ab2..559bf1727a2b8f252a193d6fac276aed56124428 100644
(file)
--- a/
drivers/video/sis/sis_main.c
+++ b/
drivers/video/sis/sis_main.c
@@
-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));
- str
cpy(fix->id, ivideo->myid
);
+ str
lcpy(fix->id, ivideo->myid, sizeof(fix->id)
);
mutex_lock(&info->mm_lock);
fix->smem_start = ivideo->video_base + ivideo->video_offset;