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
This commit is contained in:
Guy Harris 1999-12-02 01:33:55 +00:00
parent 27f7e065e4
commit 6492ea79ee
1 changed files with 2 additions and 1 deletions

View File

@ -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++;