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

Commit 1f2c19f8 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

parport_pc.c: use correct length in strncmp

parent ac2b3e67
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3403,7 +3403,7 @@ static int __init parport_parse_param(const char *s, int *val,
		*val = automatic;
		*val = automatic;
	else if (!strncmp(s, "none", 4))
	else if (!strncmp(s, "none", 4))
		*val = none;
		*val = none;
	else if (nofifo && !strncmp(s, "nofifo", 4))
	else if (nofifo && !strncmp(s, "nofifo", 6))
		*val = nofifo;
		*val = nofifo;
	else {
	else {
		char *ep;
		char *ep;