mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
7ba81feca0
PR: ports/72654 Submitted by: David Gilbert <dgilbert@daveg.ca> Approved by: pat (maintainer, timeout) Approved by: clement (mentor)
12 lines
346 B
C
12 lines
346 B
C
--- source/rain_udp.c.orig Fri Aug 17 07:36:26 2001
|
|
+++ source/rain_udp.c Wed Apr 20 01:19:27 2005
|
|
@@ -105,7 +105,7 @@
|
|
buffer[(sizeof(struct ip) + sizeof(struct udphdr)) + i] = pkt->payload[i];
|
|
}
|
|
|
|
- pkt->tot_len = (sizeof(struct udphdr) + strlen(buffer));
|
|
+ pkt->tot_len = (sizeof(struct udphdr) + sizeof(char)*packetsize);
|
|
|
|
|
|
/*
|