diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-03-24 23:49:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-03-24 23:49:14 +0000 |
commit | d0608379b3b5fa7e0a43bc22631a1f41fe6a915d (patch) | |
tree | ada6e14869997c8789ca02e8e3f8c2afae4fdd1a /print.c | |
parent | 6e05db37f96e60f52e47573a5bd83863e5484627 (diff) | |
download | wireshark-d0608379b3b5fa7e0a43bc22631a1f41fe6a915d.tar.gz wireshark-d0608379b3b5fa7e0a43bc22631a1f41fe6a915d.tar.bz2 wireshark-d0608379b3b5fa7e0a43bc22631a1f41fe6a915d.zip |
Always hand "print_line()" a string that ends with "\n".
svn path=/trunk/; revision=3184
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |