mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
fbcon: prevent possible buffer overflow.
Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
This commit is contained in:
parent
fea7a08acb
commit
e432964a3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue