issues/1239: some copyn() usage expects at least 'n' bytes

             to be copied regardless of embedded nuls. 

using strndup causes:
https://github.com/fontforge/fontforge/issues/1239