ttcp-bcopy.patch 457 B

123456789101112
  1. diff -urN ttcp-0rig/ttcp.c ttcp/ttcp.c
  2. --- ttcp-0rig/ttcp.c 1993-05-17 00:00:00.000000000 +0200
  3. +++ ttcp/ttcp.c 2009-01-14 23:46:19.000000000 +0100
  4. @@ -241,7 +241,7 @@
  5. if ((addr=gethostbyname(host)) == NULL)
  6. err("bad hostname");
  7. sinhim.sin_family = addr->h_addrtype;
  8. - bcopy(addr->h_addr,(char*)&addr_tmp, addr->h_length);
  9. + memmove((char*)&addr_tmp, addr->h_addr, addr->h_length);
  10. #if defined(cray)
  11. sinhim.sin_addr = addr_tmp;
  12. #else