* [PATCH] niu.c: Use correct length in strncmp
@ 2009-11-10 4:05 Joe Perches
2009-11-13 22:10 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Joe Perches @ 2009-11-10 4:05 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
Untested, no hardware
Signed-off-by: Joe Perches <joe@perches.com>
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index d6c7ac6..d0f96bc 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -8144,7 +8144,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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-13 22:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 4:05 [PATCH] niu.c: Use correct length in strncmp Joe Perches
2009-11-13 22:10 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox