hping: fix building with secure strlcpy.

Closes #23677.