patch-cutter_c 899 B

123456789101112131415161718192021
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- cutter-1.03.orig/cutter.c 2005-04-30 09:01:03.000000000 +0200
  3. +++ cutter-1.03/cutter.c 2008-10-09 11:32:40.000000000 +0200
  4. @@ -297,7 +297,7 @@ int send_rst(
  5. pheader.placeholder=0;
  6. pheader.protocol=IPPROTO_TCP;
  7. pheader.tcp_length=htons(TCPHDR);
  8. - bcopy((char *)&tpack.tcp,(char *)&pheader.tcp,TCPHDR);
  9. + memcpy((char *)&pheader.tcp,(char *)&tpack.tcp,TCPHDR);
  10. tpack.tcp.check=in_cksum((unsigned short *)&pheader,TCPHDR+12);
  11. /*
  12. @@ -419,7 +419,7 @@ int send_rst(
  13. pheader.placeholder=0;
  14. pheader.protocol=IPPROTO_TCP;
  15. pheader.tcp_length=htons(TCPHDR);
  16. - bcopy((char *)&tpack.tcp,(char *)&pheader.tcp,TCPHDR);
  17. + memcpy((char *)&pheader.tcp,(char *)&tpack.tcp,TCPHDR);
  18. tpack.tcp.check=in_cksum((unsigned short *)&pheader,TCPHDR+12);
  19. i_result = sendto(raw_sock,&tpack,PACKETSIZE,0,(void*)&hisaddr,sizeof(hisaddr));