HomeFreeBSD

The initial logic for allocating the new string was wrong, the conversion

Description

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.

Details

Provenance
baptAuthored on
Parents
rS282718: Use strndup(3) instead of malloc(3) + memcpy(3)
Branches
Unknown
Tags
Unknown