Commit a55cc90f authored by sagnowski's avatar sagnowski Committed by Vladimir Malenovsky
Browse files

CmdLnParser: Remove one more use of strnlen

parent 92eb5a07
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;