Messages in this thread | | | Subject | Re: [PATCH 3/4] security/selinux: decrement sizeof size in strncmp | From | Joe Perches <> | Date | Fri, 13 Nov 2009 19:48:11 -0800 |
| |
On Sat, 2009-11-14 at 03:44 +0000, David Wagner wrote: > I personally don't find > strncmp(foo, "constant", sizeof("constant")) // first snippet > to be more readable, auditable, or obviously correct than > strcmp(foo, "constant"). // second snippet > Is there a technical basis for arguing that the first > snippet is better than the second snippet?
I don't think there is.
| |