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

Commit e432964a authored by Paul Cercueil's avatar Paul Cercueil Committed by Florian Tobias Schandinat
Browse files

fbcon: prevent possible buffer overflow.

parent fea7a08a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;