Commit 8cf192bc authored by sagnowski's avatar sagnowski
Browse files

CmdLnParser: Remove one more use of strnlen

parent cfc2ada7
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ static bool optionMatchesString(
        return false;
    }

    if ( strnlen( str, MAX_OPTION_LENGTH + 1 ) > MAX_OPTION_LENGTH )
    if ( strLength( str, MAX_OPTION_LENGTH + 1 ) > MAX_OPTION_LENGTH )
    {
        /* String longer than longest possible option - not a match */
        return false;