commit | 9ea2bdab11da97b2ac6f87d79976d25fa6d27295 | [log] [tgz] |
---|---|---|
author | Joe Perches <joe@perches.com> | Mon Nov 09 18:05:45 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Nov 13 14:07:30 2009 -0800 |
tree | 8c70d61ee1ceefe7b0caa321087d0199ad27625e | |
parent | 805003a41c035ccbe37d3d5ef5e6df8874346b5a [diff] [blame] |
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>
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 44558fc..8ce58c4 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c
@@ -8143,7 +8143,7 @@ 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)