Evaluate the string literal length automatically

The fragment is taken from the OpenSSL library. The error is detected by the following diagnostic: V666 Consider inspecting the third argument of the function ‘strncmp’. It is possible that the value does not correspond with the length of a string which was passed with the second argument.

Continue reading