--- parser3/src/lib/smtp/smtp.C 2004/02/24 10:36:16 1.3 +++ parser3/src/lib/smtp/smtp.C 2004/02/24 11:37:54 1.6 @@ -7,11 +7,16 @@ Parts of the code here is based upon an early gensock and blat */ -static const char * const IDENT_SMTP_C="$Date: 2004/02/24 10:36:16 $"; +static const char * const IDENT_SMTP_C="$Date: 2004/02/24 11:37:54 $"; #include "pa_exception.h" #include "smtp.h" +#undef snprintf +// pa_common.C +extern int __snprintf(char *, size_t, const char* , ...); +#define snprintf __snprintf + //#define DEBUG_SHOW SMTP::SMTP() { @@ -39,6 +44,7 @@ void SMTP:: ConnectToHost(const char* hostname, const char* service) { struct sockaddr_in sa_in; + memset(&sa_in, 0, sizeof(sa_in)); u_short our_port; if( !ResolveService(service, &our_port) )