test_hexdump: use memcpy instead of strncpy