Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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/) // <smpl> @@ expression foo; constant char *abc; @@ *strncmp(foo, abc, sizeof(abc)) // </smpl> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Anders Larsen <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
- Loading branch information