summaryrefslogtreecommitdiffstats
path: root/drivers/video/console/fbcon.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2012-07-24 03:00:24 +0200
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-08-23 14:22:46 +0200
commite432964a3c5ce517fd93101ae3875172ee958b65 (patch)
treee0e704e5071f755710c3a9a938d683c97af2fcdc /drivers/video/console/fbcon.c
parentLinux 3.6-rc3 (diff)
downloadlinux-e432964a3c5ce517fd93101ae3875172ee958b65.tar.xz
linux-e432964a3c5ce517fd93101ae3875172ee958b65.zip
fbcon: prevent possible buffer overflow.
Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/console/fbcon.c')
-rw-r--r--drivers/video/console/fbcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index 88e92041d8f0..fdefa8fd72c4 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
@@ -449,7 +449,7 @@ static int __init fb_console_setup(char *this_opt)
while ((options = strsep(&this_opt, ",")) != NULL) {
if (!strncmp(options, "font:", 5))
- strcpy(fontname, options + 5);
+ strlcpy(fontname, options + 5, sizeof(fontname));
if (!strncmp(options, "scrollback:", 11)) {
options += 11;