strlcpy + memmove and memcpy improvements