Christopher McAvaney's fix to "format_text()" to make it not stomp on
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 2 Dec 1999 01:33:55 +0000 (01:33 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 2 Dec 1999 01:33:55 +0000 (01:33 +0000)
the "..." added if a string is too long.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1177 f5534014-38df-0310-8fa8-9805f1628bb7

packet.c

index 560c411cc8d038594c8384e4ada3ca10c8231ed4..d4dbc57233759d4cef733e3a3a9f5c14413d9821 100644 (file)
--- a/packet.c
+++ b/packet.c
@@ -1,7 +1,7 @@
 /* packet.c
  * Routines for packet disassembly
  *
- * $Id: packet.c,v 1.57 1999/11/27 04:01:42 guy Exp $
+ * $Id: packet.c,v 1.58 1999/12/02 01:33:55 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -438,6 +438,7 @@ format_text(const u_char *string, int len)
        * Put "..." and quit.
        */
       strcpy(fmtbufp, " ...");
+      fmtbufp += 4;
       break;
     }
     c = *string++;