The second argument to the strnlen_s(str, size) function should be sizeof(str) when str is a true array of characters with known size (instead of just a char*).
Use type traits to determine if first parameter is character array and use the correct size based on that trait.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo