Add -h option, strnlen for olden versions of OS X.