* [PATCH] nvidia.c: Use correct length in strncmp
@ 2009-11-10 2:08 Joe Perches
0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2009-11-10 2:08 UTC (permalink / raw)
To: Antonino Daplas; +Cc: linux-fbdev-devel, LKML
Signed-off-by: Joe Perches <joe@perches.com>
diff --git a/drivers/video/nvidia/nvidia.c
b/drivers/video/nvidia/nvidia.c
index efe10ff..81e78c9 100644
--- a/drivers/video/nvidia/nvidia.c
+++ b/drivers/video/nvidia/nvidia.c
@@ -1495,7 +1495,7 @@ static int __devinit nvidiafb_setup(char *options)
flatpanel = 1;
} else if (!strncmp(this_opt, "hwcur", 5)) {
hwcur = 1;
- } else if (!strncmp(this_opt, "noaccel", 6)) {
+ } else if (!strncmp(this_opt, "noaccel", 7)) {
noaccel = 1;
} else if (!strncmp(this_opt, "noscale", 7)) {
noscale = 1;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-10 2:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 2:08 [PATCH] nvidia.c: Use correct length in strncmp Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).