1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Use memset() rather than OTMemzero(), and hence remove the need to weak link

against OTUtilityLib.

[originally from svn r2550]
This commit is contained in:
Ben Harris
2003-01-12 01:37:24 +00:00
parent 5d90fd4d1d
commit f3eff8b5de
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,8 @@
#include <OpenTransport.h>
#include <OpenTptInternet.h>
#include <string.h>
#define DEFINE_PLUG_METHOD_MACROS
#include "putty.h"
#include "network.h"
@ -262,7 +264,7 @@ Socket ot_new(SockAddr addr, int port, int privport, int oobinline,
/* FIXME: bolt the port onto the end */
OTMemzero(&connectCall, sizeof(TCall));
memset(&connectCall, 0, sizeof(TCall));
connectCall.addr.buf = (UInt8 *) &(addr->address);
connectCall.addr.len = sizeof(DNSAddress);