Avoid stringop-overflow warning about strncpy size argument depending on source size. Checking for null in src is not needed because it is already checked by strlen.
Avoid stringop-overflow warning about strncpy size argument depending on source size. Checking for null in src is not needed because it is already checked by strlen.