diff options
author | Jörg Mayer <jmayer@loplof.de> | 2002-10-10 01:45:25 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2002-10-10 01:45:25 +0000 |
commit | 6859b2caa6723e5de2048dd4ec0ed3072b25457d (patch) | |
tree | 4aa073abe43cba1ede42046aec364cfa27f59461 /text2pcap.c | |
parent | 0a0aeffdb5303b66f5db77b810a14d7ae6eed9c5 (diff) |
Increase addr outside of macro
svn path=/trunk/; revision=6393
Diffstat (limited to 'text2pcap.c')
-rw-r--r-- | text2pcap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/text2pcap.c b/text2pcap.c index 0c47f55019..d4e34fc4be 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -6,7 +6,7 @@ * * (c) Copyright 2001 Ashok Narayanan <ashokn@cisco.com> * - * $Id: text2pcap.c,v 1.22 2002/08/28 21:00:41 jmayer Exp $ + * $Id: text2pcap.c,v 1.23 2002/10/10 01:45:25 jmayer Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -348,7 +348,8 @@ in_checksum (void *buf, unsigned long count) while( count > 1 ) { /* This is the inner loop */ - sum += g_ntohs(* (unsigned short *) addr++); + sum += g_ntohs(* (unsigned short *) addr); + addr++; count -= 2; } |