HomeFreeBSD

Correct size parameter to strncmp

Description

Correct size parameter to strncmp

The wrong value passed to strncmp meant that only enable and disable were being
accepted. This change corrects the logic so enabled and disabled are also
accepted.

Pull Request: https://github.com/freebsd/freebsd-src/pull/739
MFC after: 1 week
Reviewed by: delphij, ngie

Details

Provenance
Rose <83477269+AtariDreams@users.noreply.github.com>Authored on May 8 2023, 11:08 PM
ngieCommitted on May 23 2023, 1:16 AM
Parents
rGcef256558752: dtrace: export dtrace_dis_get_byte()
Branches
Unknown
Tags
Unknown

Event Timeline

ngie committed rG5a9c724847f9: Correct size parameter to strncmp (authored by Rose <83477269+AtariDreams@users.noreply.github.com>).May 23 2023, 1:16 AM