The text a65ef4060d3a, as FreeBSD 10.0-RELEASE shipped it.
copy string until character found
memccpy(3) on FreeBSD now