convert-from-bsd-to-posix-string-and-memory-functions-20010807
[openafs.git] / src / sys / rmtsysc.c
index e114d44..ba003f2 100644 (file)
@@ -107,7 +107,7 @@ char *syscall;
        printf("host %s not found; %s call aborted\n", afs_server, syscall);
        return 0;
     }
-    bcopy(th->h_addr, &hostAddr, sizeof(hostAddr));
+    memcpy(&hostAddr, th->h_addr, sizeof(hostAddr));
     return hostAddr;
 }
 
@@ -229,7 +229,7 @@ struct ViceIoctl *data;
     if (!(inbuffer = (char *)malloc(ins)))
         return (-1);       /* helpless here */
     if (data->in_size)
-       bcopy(data->in, inbuffer, data->in_size);
+       memcpy(inbuffer, data->in, data->in_size);
     InData.rmtbulk_len = data->in_size;
     InData.rmtbulk_val = inbuffer;
     inparam_conversion(cmd, InData.rmtbulk_val, 0);