On Tue, May 3, 2016 at 1:29 PM, Warner Losh <i...@bsdimp.com> wrote: > >> On May 3, 2016, at 1:44 PM, Conrad Meyer <c...@freebsd.org> wrote: >> >> On Tue, May 3, 2016 at 12:00 PM, Oliver Pinter >> <oliver.pin...@hardenedbsd.org> wrote: >>> strlcpy instead or adjust the p->vendors size? >> >> Neither. The buffer is intentionally not nul-terminated. The >> coverity reports are false positives. > > Then wouldn’t memcmp be better?
No, memcmp doesn't do anything like strncpy. memcpy wouldn't hurt but I don't see any reason to change it. Conrad _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"