change bcopy to memcpy, bzero to memset
authorJohn Kohl <jtkohl@mit.edu>
Thu, 8 Nov 1990 15:38:51 +0000 (15:38 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 8 Nov 1990 15:38:51 +0000 (15:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1434 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/sample/sclient/sclient.c

index 454c04ac49b473f07d97ab08e10493637f03c421..cfe5163e97b9133433bdc94d376b81b08afc3835 100644 (file)
@@ -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);