OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
805003a
)
niu.c: Use correct length in strncmp
author
Joe Perches
<joe@perches.com>
Mon, 9 Nov 2009 18:05:45 +0000
(18:05 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 13 Nov 2009 22:07:30 +0000
(14:07 -0800)
Untested, no hardware
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/niu.c
patch
|
blob
|
history
diff --git
a/drivers/net/niu.c
b/drivers/net/niu.c
index
44558fc
..
8ce58c4
100644
(file)
--- a/
drivers/net/niu.c
+++ b/
drivers/net/niu.c
@@
-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)