From: John Kohl Date: Thu, 8 Nov 1990 15:38:51 +0000 (+0000) Subject: change bcopy to memcpy, bzero to memset X-Git-Tag: krb5-1.0-alpha3~158 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b3da8593c14406027a0826488f64a3506593908;p=krb5.git change bcopy to memcpy, bzero to memset git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1434 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/sample/sclient/sclient.c b/src/appl/sample/sclient/sclient.c index 454c04ac4..cfe5163e9 100644 --- a/src/appl/sample/sclient/sclient.c +++ b/src/appl/sample/sclient/sclient.c @@ -109,7 +109,7 @@ char *argv[]; if (isupper(*cp)) *cp = tolower(*cp); - bzero(sbuf, sizeof(sbuf)); + memset(sbuf, 0, sizeof(sbuf)); strcpy(sbuf, SAMPLE_SERVICE); strcat(sbuf, "/"); strcat(sbuf, remote_host); @@ -123,9 +123,9 @@ char *argv[]; /* set up the address of the foreign socket for connect() */ sin.sin_family = hp->h_addrtype; - (void) bcopy((char *)hp->h_addr, - (char *)&sin.sin_addr, - sizeof(hp->h_addr)); + (void) memcpy((char *)&sin.sin_addr, + (char *)hp->h_addr, + sizeof(hp->h_addr)); /* open a TCP socket */ sock = socket(PF_INET, SOCK_STREAM, 0);