mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
niu.c: Use correct length in strncmp
Untested, no hardware Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
805003a41c
commit
9ea2bdab11
1 changed files with 1 additions and 1 deletions
|
@ -8143,7 +8143,7 @@ static void __devinit niu_vpd_parse_version(struct niu *np)
|
|||
int i;
|
||||
|
||||
for (i = 0; i < len - 5; i++) {
|
||||
if (!strncmp(s + i, "FCode ", 5))
|
||||
if (!strncmp(s + i, "FCode ", 6))
|
||||
break;
|
||||
}
|
||||
if (i >= len - 5)
|
||||
|
|
Loading…
Reference in a new issue