Closed dimkr closed 3 years ago
The null termination using sizeof() is still needed, because if the section is >= sizeof(section) bytes, then strlen() goes beyond the end of the buffer (the sizeof() makes the strlen() safe).
sizeof(section)
The null termination using sizeof() is still needed, because if the section is >=
sizeof(section)
bytes, then strlen() goes beyond the end of the buffer (the sizeof() makes the strlen() safe).