...
An exception to this rule applies if the intent of the programmer was to convert a null-terminated byte string to a character array. To be compliant with this standard, this intent must be made clear statement in comments.
References
- ISO/IEC 9899:-1999 7.21.2.4 The strncpy function
- ISO/IEC 9899:-1999 7.21.3.2 The strncat function
- SAMATE Reference Dataset Test Case ID 000-000-004