niu.c: Use correct length in strncmp
Subsystems (2)
PATCH 1/1 niu.c: Use correct length in strncmp
Untested, no hardware
Signed-off-by Joe Perches <[email protected]>
drivers/net/niu.c +1 -1
@@ -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 )
From: Joe Perches <[email protected]>
Date: Mon, 09 Nov 2009 20:05:45 -0800
Quoted 3 lines
Untested, no hardware
Signed-off-by Joe Perches <[email protected]>
Applied to net-next-2.6, thanks.