niu.c: Use correct length in strncmp
authorJoe Perches <joe@perches.com>
Mon, 9 Nov 2009 18:05:45 +0000 (18:05 +0000)
committerDavid 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

index 44558fc..8ce58c4 100644 (file)
@@ -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)