correct argument usage for memset() in wget_agent. Fixes bug #7917