Unable to fix (Make sure use of "strlen" is safe here)

I get this error: Using “strlen” or “wcslen” is security-sensitive[c:S5813]

Here is the suggested fix:

Why do I get the error when I already has implemented the recommend fix?

Hello @stefan-vc,

This is not an error, but a hotspot. This means that it has to be reviewed (which you did), and since in that case, you take the appropriate measures to ensure the safety of your code, you can mark this hotspot as safe.

Hope this helps,

OK, thanks