Date: Tue, 3 Jun 2008 14:32:59 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 142814 for review Message-ID: <200806031432.m53EWxan062974@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=142814 Change 142814 by rpaulo@rpaulo_epsilon on 2008/06/03 14:32:57 dumper_addpkt(): Use proper size of headers. Affected files ... .. //depot/projects/soc2008/rpaulo-tcpad/dumper.c#4 edit Differences ... ==== //depot/projects/soc2008/rpaulo-tcpad/dumper.c#4 (text+ko) ==== @@ -23,7 +23,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/soc2008/rpaulo-tcpad/dumper.c#3 $ + * $P4: //depot/projects/soc2008/rpaulo-tcpad/dumper.c#4 $ */ #include <string.h> @@ -44,7 +44,7 @@ dp = malloc(sizeof(*dp)); memcpy(&dp->pheader, ph, sizeof(struct pcap_pkthdr)); - memcpy(&dp->headers, headers, 127); /* XXX */ + memcpy(&dp->headers, headers, sizeof(dp->headers)); /* XXX: honour the size of this list */ TAILQ_INSERT_TAIL(head, dp, entries); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806031432.m53EWxan062974>