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

Commit 9ea2bdab authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

niu.c: Use correct length in strncmp



Untested, no hardware

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 805003a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -8143,7 +8143,7 @@ static void __devinit niu_vpd_parse_version(struct niu *np)
	int i;
	int i;


	for (i = 0; i < len - 5; i++) {
	for (i = 0; i < len - 5; i++) {
		if (!strncmp(s + i, "FCode ", 5))
		if (!strncmp(s + i, "FCode ", 6))
			break;
			break;
	}
	}
	if (i >= len - 5)
	if (i >= len - 5)