convert-from-bsd-to-posix-string-and-memory-functions-20010807
[openafs.git] / src / rx / simple.example / sample_client.c
index c466ffb..1b0d73d 100644 (file)
@@ -29,7 +29,7 @@ static u_long GetIpAddress(hostname)
        printf("host address is disagreeable length (%d)", hostent->h_length);
        exit(1);
     }
-    bcopy(hostent->h_addr, (char *)&host, sizeof(host));
+    memcpy((char *)&host, hostent->h_addr, sizeof(host));
     return host;
 }