The text b5cc6dfcdc3a, as FreeBSD 10.2-RELEASE shipped it.
save a copy of a string
strndup(3) on FreeBSD now