HomeFreeBSD

inotify: Use memcmp() to compare embedded file names

Description

inotify: Use memcmp() to compare embedded file names

Otherwise gcc warns that strcmp() will read a byte from a zero-length
array, though in practice we exclude that case with an explicit length
check.

Fixes: f1f230439fa4 ("vfs: Initial revision of inotify")

Details

Provenance
markjAuthored on Mon, Jul 7, 7:30 PM
Parents
rG4ea7a920de22: inotify tests: Use unsigned integers for event masks
Branches
Unknown
Tags
Unknown