PERFORCE change 142814 for review
Rui Paulo
rpaulo at FreeBSD.org
Tue Jun 3 14:32:59 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=142814
Change 142814 by rpaulo at 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);
}
More information about the p4-projects
mailing list