From: Julia Lawall Date: Thu, 12 Nov 2009 22:08:36 +0000 (+0100) Subject: fs/qnx4: decrement sizeof size in strncmp X-Git-Tag: v2.6.34-rc2~65^2^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e2a10836c0455cb3ca397f89b8280496148d571;p=pandora-kernel.git fs/qnx4: decrement sizeof size in strncmp As an identical match is wanted in this case, strcmp can be used instead. The semantic match that lead to detecting this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression foo; constant char *abc; @@ *strncmp(foo, abc, sizeof(abc)) // Signed-off-by: Julia Lawall Signed-off-by: Anders Larsen Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed