aboutsummaryrefslogtreecommitdiffstats
path: root/packet.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-12-02 01:33:55 +0000
committerGuy Harris <guy@alum.mit.edu>1999-12-02 01:33:55 +0000
commit6492ea79ee134701ef98e997201576f1fc8b5af9 (patch)
tree4723722c82828836aee80397f1cd64c6fd4c1da1 /packet.c
parent27f7e065e400a0eab402c46d878ce12e5a89a602 (diff)
Christopher McAvaney's fix to "format_text()" to make it not stomp on
the "..." added if a string is too long. svn path=/trunk/; revision=1177
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet.c b/packet.c
index 560c411cc8..d4dbc57233 100644
--- 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++;