]> The Tcpdump Group git mirrors - tcpdump/commitdiff
fix display of correct offset for hexdumps
authorhannes <hannes>
Thu, 2 Oct 2003 13:16:14 +0000 (13:16 +0000)
committerhannes <hannes>
Thu, 2 Oct 2003 13:16:14 +0000 (13:16 +0000)
util.c

diff --git a/util.c b/util.c
index 36b8611c77d1d410e4fc00b2a3391fee57149eba..7326a62e9354621502f484ba7b66c74484f90847 100644 (file)
--- a/util.c
+++ b/util.c
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.86 2003-07-30 00:20:28 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/util.c,v 1.87 2003-10-02 13:16:14 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -217,7 +217,7 @@ print_unknown_data(const u_char *cp,const char *lf,int len)
                printf(" ");
            if (i/16!=(i+1)/16) {
                if (i<(len-1))
                printf(" ");
            if (i/16!=(i+1)/16) {
                if (i<(len-1))
-                   printf("%s0x%04x: ",lf,i);
+                   printf("%s0x%04x: ",lf,i+1);
            }
        }
        return(1); /* everything is ok */
            }
        }
        return(1); /* everything is ok */