mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 10:46:11 +00:00
parport_pc.c: use correct length in strncmp
Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ac2b3e67dd
commit
1f2c19f8c9
1 changed files with 1 additions and 1 deletions
|
@ -3403,7 +3403,7 @@ static int __init parport_parse_param(const char *s, int *val,
|
|||
*val = automatic;
|
||||
else if (!strncmp(s, "none", 4))
|
||||
*val = none;
|
||||
else if (nofifo && !strncmp(s, "nofifo", 4))
|
||||
else if (nofifo && !strncmp(s, "nofifo", 6))
|
||||
*val = nofifo;
|
||||
else {
|
||||
char *ep;
|
||||
|
|
Loading…
Reference in a new issue