...
STR36-EX2: If the string being initialized might change in the future, one may explicitly specify an array bounds. This is particularly important if the array might hold strings longer than the initialization string.
Code Block | ||
---|---|---|
| ||
const char s[10] = "abc"; strcpy(&s[3], "def"); |
Risk Assessment
...