summaryrefslogtreecommitdiff
path: root/package/cutter/patches
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/cutter/patches
Initial import
Diffstat (limited to 'package/cutter/patches')
-rw-r--r--package/cutter/patches/patch-cutter_c21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/cutter/patches/patch-cutter_c b/package/cutter/patches/patch-cutter_c
new file mode 100644
index 000000000..781c17401
--- /dev/null
+++ b/package/cutter/patches/patch-cutter_c
@@ -0,0 +1,21 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- cutter-1.03.orig/cutter.c 2005-04-30 09:01:03.000000000 +0200
++++ cutter-1.03/cutter.c 2008-10-09 11:32:40.000000000 +0200
+@@ -297,7 +297,7 @@ int send_rst(
+ pheader.placeholder=0;
+ pheader.protocol=IPPROTO_TCP;
+ pheader.tcp_length=htons(TCPHDR);
+- bcopy((char *)&tpack.tcp,(char *)&pheader.tcp,TCPHDR);
++ memcpy((char *)&pheader.tcp,(char *)&tpack.tcp,TCPHDR);
+ tpack.tcp.check=in_cksum((unsigned short *)&pheader,TCPHDR+12);
+
+ /*
+@@ -419,7 +419,7 @@ int send_rst(
+ pheader.placeholder=0;
+ pheader.protocol=IPPROTO_TCP;
+ pheader.tcp_length=htons(TCPHDR);
+- bcopy((char *)&tpack.tcp,(char *)&pheader.tcp,TCPHDR);
++ memcpy((char *)&pheader.tcp,(char *)&tpack.tcp,TCPHDR);
+ tpack.tcp.check=in_cksum((unsigned short *)&pheader,TCPHDR+12);
+
+ i_result = sendto(raw_sock,&tpack,PACKETSIZE,0,(void*)&hisaddr,sizeof(hisaddr));