"Buffer 'strdata' is being written before its old content has been used." (cherry picked from commit c5f597d5)