Replace call to strnlen with call to strlen