The initial logic for allocating the new string was wrong, the conversion
to strndup(3) duplicated the same mistake, actually strdup(3) is good enough
to allocate the new string.
Description
Description
Details
Details
- Provenance
bapt Authored on - Parents
- rS282718: Use strndup(3) instead of malloc(3) + memcpy(3)
- Branches
- Unknown
- Tags