Reference

bson_strndup(3) on Linux

The text 44c4d922e01b, as Debian 9 (Stretch) shipped it.

Allocates a new string and copies up to n_bytes from str into it. A trailing is always set.

bson_strndup(3) on Linux now