aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-03-24 23:49:14 +0000
committerGuy Harris <guy@alum.mit.edu>2001-03-24 23:49:14 +0000
commitd0608379b3b5fa7e0a43bc22631a1f41fe6a915d (patch)
treeada6e14869997c8789ca02e8e3f8c2afae4fdd1a /print.c
parent6e05db37f96e60f52e47573a5bd83863e5484627 (diff)
Always hand "print_line()" a string that ends with "\n".
svn path=/trunk/; revision=3184
Diffstat (limited to 'print.c')
-rw-r--r--print.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/print.c b/print.c
index 25c07c1bae..46029cf21e 100644
--- a/print.c
+++ b/print.c
@@ -1,7 +1,7 @@
/* print.c
* Routines for printing packet analysis trees.
*
- * $Id: print.c,v 1.31 2001/03/24 09:39:47 guy Exp $
+ * $Id: print.c,v 1.32 2001/03/24 23:49:14 guy Exp $
*
* Gilbert Ramirez <gram@xiexie.org>
*
@@ -202,10 +202,9 @@ void print_hex_data(FILE *fh, gint format, frame_data *fd)
print_line(fh, format, "\n");
line = g_malloc(strlen(name) + 3); /* <name>:\n\0 */
strcpy(line, name);
- strcat(line, ":");
+ strcat(line, ":\n");
print_line(fh, format, line);
g_free(line);
- print_line(fh, format, "\n");
}
length = tvb_length(tvb);
cp = tvb_get_ptr(tvb, 0, length);