I am required to convert all instances of strlen in our code base to the more secure version strnlen_s. The only difference between the two functions arguments is strnlen_s' requirement for the maximum length of the buffer you are providing.
This is a really straight forward process with instances of a character array (char array[64]) that have explicit lengths (sizeof(array)). Unfortunately, there are several instances of strlen being used with a character pointer (char*), whose size is always 8.
Is there a way to use strneln_s with character pointers?